#include <bits/stdc++.h>
using namespace std;
int main() {
  int q = 1;
  cin >> q;
  for (int it = 0; it < q; it++) {
    int n, k, nechet = 0;
    cin >> n >> k;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 1) nechet++;
    }
    if (nechet < k || nechet % 2 != k % 2) {
      cout << "NO\n";
      continue;
    }
    cout << "YES\n";
    int x = 0;
    for (int i = 0; i < n; i++) {
      if (x == k - 1) break;
      if (a[i] % 2 == 1) {
        cout << i + 1 << " ";
        x++;
      }
    }
    cout << n << endl;
  }
  return 0;
}
