#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long q;
  cin >> q;
  while (q--) {
    long long n, k;
    cin >> n >> k;
    vector<long long> resp;
    long long s = 0, cnt = 0;
    for (long long i = 1; i <= n; i++) {
      long long x;
      cin >> x;
      s += x;
      if (s % 2 == 1 && cnt < k - 1) resp.push_back(i), s = 0, cnt++;
    }
    resp.push_back(n);
    if (cnt == k - 1 && s % 2 == 1) {
      cout << "YES" << endl;
      for (long long i = 0; i < resp.size(); i++) {
        cout << resp[i] << " ";
      }
      cout << endl;
      continue;
    }
    cout << "NO" << endl;
  }
}
