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