#include <bits/stdc++.h>
using namespace std;
int n, m, q, x, a[1010000], k, y, sum;
int main() {
  scanf("%d", &q);
  while (q--) {
    scanf("%d%d", &n, &k);
    m = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &x);
      if (x % 2) a[++m] = i;
    }
    if (m < k) {
      printf("NO\n");
      continue;
    }
    if ((m - k) % 2)
      printf("NO\n");
    else {
      printf("YES\n");
      for (int i = 1; i < k; i++) printf("%d ", a[i]);
      printf("%d\n", n);
    }
  }
  return 0;
}
