#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    int k;
    cin >> n >> k;
    int arr[n];
    int d = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] % 2 != 0) d++;
    }
    int prr[d];
    int j = 0;
    for (int i = 0; i < n; i++) {
      if (arr[i] % 2 != 0) prr[j++] = i + 1;
    }
    int c = 0;
    int s = d - 1;
    while (d > 0) {
      if (k == d) {
        cout << "YES" << endl;
        for (int i = 0; i < d - 1; i++) {
          cout << prr[c++] << " ";
        }
        cout << n;
        cout << endl;
        break;
      }
      d = d - 2;
    }
    if (d <= 0) cout << "NO" << endl;
  }
  return 0;
}
