#include <bits/stdc++.h>
using namespace std;
ostream &operator<<(ostream &out, vector<int> &v) {
  for (auto a : v) out << a << " ";
  out << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int T;
  cin >> T;
  for (int tc = 1; tc <= T; tc++) {
    int n, k;
    cin >> n >> k;
    vector<int> v(n), dp(n + 1);
    int nodd = 0;
    for (int i = 0; i < n; i++) {
      cin >> v[i];
      if (v[i] % 2 == 1) {
        nodd++;
      }
      dp[i + 1] = nodd;
    }
    if (k > nodd) {
      cout << "NO\n";
      continue;
    } else {
      if (nodd % 2) {
        if (k % 2 == 0) {
          cout << "NO\n";
          continue;
        } else {
          cout << "YES\n";
          if (k == 1) {
            cout << n << endl;
            continue;
          } else {
            int cur = 0;
            for (int i = 0; i < n; i++) {
              if (v[i] % 2) {
                cout << i + 1 << " ";
                cur++;
                if (cur + 1 == k) {
                  cout << n << endl;
                  break;
                }
              }
            }
          }
        }
      } else {
        if (k % 2 == 1) {
          cout << "NO\n";
          continue;
        } else {
          cout << "YES\n";
          int cur = 0;
          for (int i = 0; i < n; i++) {
            if (v[i] % 2) {
              cout << i + 1 << " ";
              cur++;
              if (cur + 1 == k) {
                cout << n << endl;
                break;
              }
            }
          }
        }
      }
    }
  }
}
