#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const double PI = acos(-1);
const int mod = 1e9 + 7;
const int inf = 1e9 + 100;
const ll inf64 = 1e18 + 100;
void solve() {
  ll n, k, sum = 0;
  cin >> n >> k;
  vector<ll> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  if (k % 2 != sum % 2) {
    cout << "NO\n";
    return;
  }
  vector<int> answer;
  sum = 0;
  for (int i = 0; i < n; i++) {
    sum += a[i];
    if (k > 1) {
      if (sum % 2) {
        answer.push_back(i + 1);
        sum = 0;
        k--;
      }
    }
  }
  if (k > 1) {
    cout << "NO\n";
    return;
  }
  cout << "YES\n";
  for (auto x : answer) {
    cout << x << ' ';
  }
  cout << n << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(20);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
