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