#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;
int t, n, k, a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> t;
  while (t--) {
    vector<int> vec;
    cin >> n >> k;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2) vec.push_back(i + 1);
    }
    if ((vec.size() - k) % 2 || vec.size() < k)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      int len = vec.size();
      for (int i = 0; i < k - 1; i++) {
        if (i) cout << " ";
        cout << vec[i];
      }
      cout << " " << n << endl;
    }
  }
  return 0;
}
