#include <bits/stdc++.h>
using namespace std;
int arr[200005];
int main() {
  int q, i;
  scanf("%d", &q);
  for (i = 0; i < q; i++) {
    int n, k, j, sum = 0;
    scanf("%d%d", &n, &k);
    for (j = 0; j < n; j++) {
      int x;
      scanf("%d", &x);
      arr[j] = x % 2;
      sum += arr[j];
    }
    int temp = k;
    int ind = 0;
    if (sum >= k && (sum - k) % 2 == 0) {
      int cnt = 0;
      printf("YES\n");
      if (k != 1) {
        for (j = 0; j < n; j++) {
          if (arr[j]) {
            printf("%d ", j + 1);
            cnt++;
          }
          if (cnt == k - 1) break;
        }
      }
      printf("%d\n", n);
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
