#include <bits/stdc++.h>
using namespace std;
int a[200005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T, n, k;
  cin >> T;
  while (T--) {
    cin >> n >> k;
    int res = 0, x;
    for (int i = 1; i <= n; ++i) {
      cin >> x;
      if (x & 1) a[res++] = i;
    }
    if (res < k || (res - k) & 1)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (int i = 0; i < k - 1; ++i) {
        cout << a[i] << "\t";
      }
      cout << n << endl;
    }
  }
}
