#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long q;
  cin >> q;
  while (q--) {
    long long k, n, cnt = 0;
    cin >> k >> n;
    vector<long long> v(k), oddPos;
    for (long long i = 0; i < k; ++i) {
      cin >> v[i];
      if (v[i] & 1) {
        ++cnt;
        oddPos.push_back(i + 1);
      }
    }
    if (cnt < n || (cnt - (n - 1)) % 2 == 0)
      cout << "NO\n";
    else {
      cout << "YES\n";
      for (long long i = 0; i < n - 1; ++i) cout << oddPos[i] << " ";
      cout << k << '\n';
    }
  }
  return 0;
}
