#include <bits/stdc++.h>
using namespace std;
int vec[300000], ans[300000];
int main() {
  std::ios::sync_with_stdio(false);
  int q;
  cin >> q;
  while (q--) {
    int n, k, odd = 0, cnt = 1, j = 0;
    long long int x, sum = 0;
    cin >> n >> k;
    for (int i = 1; i <= n; i++) {
      cin >> x;
      vec[i] = x;
    }
    if (n < k)
      cout << "NO" << endl;
    else {
      for (int i = 1; i <= n; i++) {
        sum += vec[i];
        if (sum % 2 && cnt < k) {
          ans[j++] = i;
          cnt++;
          sum = 0;
        }
      }
      if (sum % 2 && cnt == k) {
        cout << "YES" << endl;
        for (int i = 0; i < j; i++) cout << ans[i] << ' ';
        cout << n << endl;
      } else
        cout << "NO" << endl;
    }
  }
}
