#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  for (int i = 0; i < q; ++i) {
    int n, k;
    cin >> n >> k;
    int in;
    int s = 0;
    int c = 0;
    vector<int> res;
    int j;
    for (j = 0; j < n; ++j) {
      cin >> in;
      s = (s + in) % 2;
      if (c < k - 1 && s == 1) {
        res.push_back(j + 1);
        ++c;
        s = 0;
      }
    }
    if (c != k - 1 || s != 1) {
      cout << "NO \n";
    } else {
      cout << "YES \n";
      for (int j = 0; j < k - 1; ++j) {
        cout << res[j] << " ";
      }
      cout << n << "\n";
    }
  }
}
