#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q;
  cin >> q;
  for (int i = 0; i < q; i++) {
    cin >> n >> k;
    vector<int> a(n);
    int cnt = 0;
    for (int j = 0; j < n; j++) {
      cin >> a[j];
      cnt += a[j] % 2;
    }
    if (cnt < k || (cnt % 2 != k % 2)) {
      cout << "NO" << endl;
      continue;
    } else {
      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;
}
