#include <bits/stdc++.h>
using namespace std;
const int N = (2 * 1e3) + 1;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k;
    cin >> n >> k;
    vector<int> vec;
    vector<int> st;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      if (x % 2) st.push_back(i);
    }
    if (st.size() < k)
      cout << "NO"
           << "\n";
    else {
      if ((st.size() - k) % 2 == 0) {
        cout << "YES" << endl;
        for (int i = 0; i < k - 1; i++) cout << st[i] + 1 << " ";
        cout << n;
        cout << "\n";
      } else
        cout << "NO"
             << "\n";
    }
  }
}
