#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<int> v(n), v1(n);
    int count = 0;
    for (int i = 0; i < n; i++) {
      cin >> v[i];
      v1[i] = v[i] % 2;
      count += v1[i];
    }
    if ((count < m) || ((count - m) % 2 == 1)) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      int counter = count - m;
      bool iscountbalanced = false;
      for (int i = 0; i < n; i++) {
        if (v1[i] == 1 && iscountbalanced == false && counter >= 0) {
          counter--;
          continue;
        }
        if (counter == -1 && iscountbalanced == false) {
          iscountbalanced = true;
        }
        if (iscountbalanced == true && v1[i] == 1) {
          cout << i << " ";
        }
      }
      cout << n << endl;
    }
  }
}
