#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k, a[200005];
  scanf("%lld", &n);
  while (n--) {
    long long count = 0;
    scanf("%lld%lld", &m, &k);
    for (long long i = 1; i <= m; i++) {
      scanf("%lld", &a[i]);
      if (a[i] % 2 == 1) count++;
    }
    if (count < k || (count - k) % 2 == 1) {
      printf("NO\n");
      continue;
    }
    printf("YES\n");
    for (long long i = 1; i <= m; i++) {
      if (a[i] % 2 == 1 && k > 1) {
        printf("%lld ", i);
        k--;
      }
      if (k == 1) {
        printf("%lld", m);
        break;
      }
    }
    printf("\n");
  }
}
