#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
int main() {
  int q;
  cin >> q;
  for (int i = 0; i < q; ++i) {
    int n, k;
    cin >> n >> k;
    vi a(n);
    int cntodd = 0;
    for (int j = 0; j < n; ++j) {
      cin >> a[j];
      cntodd += a[j] % 2;
    }
    if (cntodd < k || cntodd % 2 != k % 2) {
      cout << "NO" << endl;
      continue;
    }
    cout << "YES" << endl;
    for (int j = 0; j < n; ++j) {
      if (k == 1) break;
      if (a[j] % 2 == 1) {
        cout << j + 1 << " ";
        --k;
      }
    }
    cout << n << endl;
  }
  return 0;
}
