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