#include <bits/stdc++.h>
const int mod = 1e9 + 7;
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N, K;
    scanf("%d%d", &N, &K);
    int a = 0;
    int b = 0;
    vector<int> v1;
    for (int i = 1; i <= N; i++) {
      int temp;
      scanf("%d", &temp);
      if (temp & 1) {
        a++;
        v1.push_back(i);
      } else
        b++;
    }
    if (a >= K) {
      if (!((a - K) & 1)) {
        printf("YES\n");
        for (int i = 0; i < K - 1; i++) printf("%d ", v1[i]);
        printf("%d\n", N);
      } else
        printf("NO\n");
    } else
      printf("NO\n");
  }
  return 0;
}
