#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    long long arr[n], odd = 0, even = 0;
    for (long long i = 0; i < n; i++) cin >> arr[i];
    vector<long long> ind;
    long long sum = 0;
    for (long long i = 0; i < n; i++) {
      sum += arr[i];
      if (k != 1 && sum & 1) {
        ind.push_back(i + 1);
        k--;
        sum = 0;
      }
    }
    if (k != 1 || (sum & 1) == 0)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (long long it : ind) {
        cout << it << " ";
      }
      cout << n << endl;
    }
  }
}
