#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k, count = 0;
    cin >> n >> k;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] & 1) {
        count++;
      }
    }
    if (count < k) {
      cout << "NO" << endl;
    } else {
      if (count % 2 != k % 2) {
        cout << "NO" << endl;
      } else {
        cout << "YES" << endl;
        int flag = 0;
        for (int i = 0; i < n; i++) {
          if (flag == k - 1) {
            break;
          }
          if (a[i] & 1) {
            cout << i + 1 << " ";
            flag++;
          }
        }
        cout << n << endl;
      }
    }
  }
  return 0;
}
