#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  long long n, k, a, cnt;
  while (T--) {
    cnt = 0;
    vector<long long> ans;
    cin >> n >> k;
    for (int i = 1; i <= n; i++) {
      cin >> a;
      if (a % 2 == 1) {
        ans.push_back(i);
        cnt++;
      }
    }
    if ((cnt >= k) && (cnt - k) % 2 == 0) {
      cout << "YES" << endl;
      for (int i = 0; i < k - 1; i++) cout << ans[i] << " ";
      cout << n << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
