#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int q;
  cin >> q;
  while (q) {
    vector<long long int> v;
    long long int n, k;
    cin >> n >> k;
    long long int arr[n], i;
    for (i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] % 2 != 0) v.push_back(i + 1);
    }
    if (v.size() < k)
      cout << "NO";
    else {
      if ((v.size() - k) % 2 == 0) {
        cout << "YES"
             << "\n";
        for (i = 0; i < k - 1; i++) {
          cout << v[i] << " ";
        }
        cout << n;
      } else
        cout << "NO";
    }
    cout << "\n";
    q--;
  }
  return 0;
}
