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