#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long q, n, k;
  cin >> q;
  while (q--) {
    cin >> n >> k;
    long long data[200005];
    for (int i = 0; i < n; i++) {
      cin >> data[i];
    }
    vector<int> v;
    long long s = 0;
    for (int i = 0; i < n; i++) {
      if (data[i] % 2 != 0 && k > 1) {
        v.push_back(i);
        k--;
      } else if (k <= 1)
        s += data[i];
    }
    if (k >= 1 && s % 2 == 0)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (int i = 0; i < v.size(); i++) cout << v[i] + 1 << " ";
      cout << n << endl;
    }
  }
  return 0;
}
