#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
int rd() {
  int sum = 0, flag = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') flag = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    sum = (sum << 1) + (sum << 3) + ch - '0';
    ch = getchar();
  }
  return sum * flag;
}
long long RD() {
  long long sum = 0, flag = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') flag = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    sum = (sum << 1) + (sum << 3) + ch - '0';
    ch = getchar();
  }
  return sum * flag;
}
int a[200005];
int main() {
  int t = rd();
  while (t--) {
    int n = rd(), k = rd();
    int pos = 0, sum = 0;
    for (int i = 1; i <= n; i++) {
      int x = rd();
      if (x % 2) a[++pos] = i, sum++;
    }
    if (k > sum || (sum > k && (sum - k) % 2))
      printf("NO\n");
    else {
      printf("YES\n");
      for (int i = 1; i <= k - 1; i++) {
        printf("%d ", a[i]);
      }
      printf("%d\n", n);
    }
  }
  return 0;
}
