#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  scanf("%d", &q);
  while (q--) {
    int n, k, x;
    vector<pair<int, int> > odds;
    scanf("%d %d", &n, &k);
    for (int i = 1; i <= n; i++) {
      scanf("%d", &x);
      if (x & 1) odds.push_back(make_pair(i, x));
    }
    if (odds.size() >= k && odds.size() % 2 == k % 2) {
      printf("YES\n");
      for (int i = 0; i < k - 1; i++) printf("%d ", odds[i].first);
      printf("%d\n", n);
    } else
      printf("NO\n");
  }
}
