#include <bits/stdc++.h>
using namespace std;
long long a[200003];
int main() {
  long long q, n, k;
  scanf("%lld", &q);
  while (q--) {
    scanf("%lld %lld", &n, &k);
    long long cnt = 0;
    for (long long i = 1; i <= n; i++) {
      scanf("%lld", &a[i]);
      if (a[i] % 2 == 1) cnt++;
    }
    if (cnt < k) {
      cout << "NO" << endl;
    } else {
      cnt -= k;
      if (cnt % 2 == 1) {
        cout << "NO" << endl;
      } else {
        cout << "YES" << endl;
        k--;
        for (long long i = 1; (i < n) && k; i++) {
          if (a[i] % 2 == 1) {
            printf("%lld ", i);
            k--;
          }
        }
        printf("%lld\n", n);
      }
    }
  }
  return 0;
}
