#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, n, q, a, l, b, c;
  cin >> q;
  while (q--) {
    cin >> n >> k;
    vector<long long> ans;
    long long sum = 0, a[n], total = 0, sumtill = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2) {
        total++;
        ans.push_back(i + 1);
      }
    }
    if (total < k) {
      cout << "NO\n";
      continue;
    } else {
      total = total - k;
      if (total % 2 == 1) {
        cout << "NO\n";
        continue;
      } else {
        cout << "YES\n";
        for (i = 0; i < k - 1; i++) {
          cout << ans[i] << " ";
        }
        cout << n << '\n';
      }
    }
  }
  return 0;
}
