#include <bits/stdc++.h>
using namespace std;
int a[200005], ans[200005];
int main() {
  int q, n, k;
  cin >> q;
  while (q--) {
    cin >> n >> k;
    int i = 1, j = 1, ansr = 0;
    while (i <= n) {
      cin >> a[i];
      if (a[i] % 2 == 1) {
        ans[j] = i;
        ansr++;
        j++;
      }
      i++;
    }
    if (ansr < k || (ansr - k + 1) % 2 == 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      i = 1;
      while (i <= k - 1) {
        cout << ans[i] << " ";
        i++;
      }
      cout << n << endl;
    }
  }
  return 0;
}
