#include <bits/stdc++.h>
using namespace std;
int main() {
  long long q, i, j, n, k;
  cin >> q;
  for (int l = 0; l < q; l++) {
    vector<long long> o;
    long long cnt = 0;
    cin >> n >> k;
    for (i = 0; i < n; i++) {
      long long p;
      cin >> p;
      if (p % 2 != 0) {
        cnt++;
        o.push_back(i);
      }
    }
    if (cnt >= k) {
      if (cnt == k) {
        cout << "YES" << endl;
        for (j = 0; j < k - 1; j++) {
          cout << o[j] + 1 << " ";
        }
        cout << n << endl;
      } else {
        if ((cnt - k) % 2 != 0) {
          cout << "NO" << endl;
        } else {
          cout << "YES" << endl;
          for (j = 0; j < k - 1; j++) {
            cout << o[j] + 1 << " ";
          }
          cout << n << endl;
        }
      }
    } else {
      cout << "NO" << endl;
    }
  }
}
