#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long kkkk = 1;
    unsigned long long n, i, k, a, j, cont = 0, cont1 = 0, cont2 = 0, x;
    cin >> n >> k;
    vector<int> vec;
    for (i = 0; i < n; i++) {
      cin >> a;
      vec.push_back(a);
      if (vec[i] % 2 != 0) {
        cont += 1;
      }
    }
    for (j = cont; j >= k; j = j - 2) {
      if (j == k) {
        cont1 += 1;
        break;
      }
    }
    if (cont1 > 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
      continue;
    }
    if (cont >= k) {
      for (i = 0;; i++) {
        if (kkkk == k) break;
        if (vec[i] % 2 != 0) {
          cont2 += 1;
          cout << i + 1 << " ";
          x++;
          kkkk++;
        }
      }
      cout << n << endl;
    }
  }
}
