#include <bits/stdc++.h>
using namespace std;
static const int maxn = 3e5 + 5;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cout << fixed << setprecision(12);
  int tc;
  cin >> tc;
  for (int tcase = 1; tcase <= tc; tcase++) {
    int n, k;
    cin >> n >> k;
    vector<int> vec(n);
    for (int &x : vec) cin >> x;
    vector<int> ans;
    bool ok = true;
    for (int i = 0; i < n; i++) {
      if (k == 1) {
        int cnt = 0;
        for (int j = i; j < n; j++) {
          if (vec[j] & 1) ++cnt;
        }
        if (~cnt & 1)
          ok = false;
        else
          ans.push_back(n);
        --k;
        break;
      }
      if (vec[i] & 1) {
        ans.push_back(i + 1);
        --k;
      }
    }
    if (k > 0) ok = false;
    if (ok == false) {
      cout << "NO" << '\n';
    } else {
      cout << "YES" << '\n';
      for (int x : ans) cout << x << " ";
      cout << '\n';
    }
  }
}
