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