#include <bits/stdc++.h>
using namespace std;
const int M = 2e5 + 10;
int n, k, m, kk, x, b[M];
int main() {
  int T;
  cin >> T;
  while (T--) {
    cin >> n >> k;
    kk = 1;
    m = 0;
    for (int i = 1; i <= n; i++) {
      cin >> x;
      if (x % 2) {
        m++;
        if (kk < k) {
          b[kk] = i;
          kk++;
        }
      }
    }
    if ((m - k + 1) % 2 == 1 && kk == k) {
      cout << "YES" << endl;
      for (int i = 1; i < kk; i++) cout << b[i] << " ";
      cout << n << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
