#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, a = 0, k, M;
    cin >> n >> k;
    vector<long long> s, v;
    for (int i = 0; i < n; i++) {
      long long x;
      cin >> x;
      v.push_back(x);
      if (x % 2 != 0) s.push_back(i + 1);
    }
    M = s.size() - k;
    if (M % 2 != 0 || M < 0)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (int i = 0; i < k - 1; i++) {
        cout << s[i] << " ";
      }
      cout << n << endl;
    }
  }
}
