#include <bits/stdc++.h>
using namespace std;
long long a[200500];
int main() {
  long long q;
  cin >> q;
  while (q--) {
    long long n, k;
    cin >> n >> k;
    long long odd = 0;
    for (long long i = 0; i < n; ++i) {
      cin >> a[i];
      odd += (a[i] & 1);
    }
    if (odd < k || (odd - k) & 1) {
      cout << "NO" << endl;
      continue;
    }
    cout << "YES" << endl;
    long long out = 1;
    for (long long i = 0; i < n && out < k; ++i) {
      if (a[i] & 1) {
        cout << i + 1 << " ";
        ++out;
      }
    }
    cout << n << endl;
  }
  return 0;
}
