#include <bits/stdc++.h>
using namespace std;
template <typename first, typename second>
ostream &operator<<(ostream &os, const pair<first, second> &p) {
  return os << "(" << p.first << ", " << p.second << ")";
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  os << "{";
  typename vector<T>::const_iterator it;
  for (it = v.begin(); it != v.end(); it++) {
    if (it != v.begin()) os << ", ";
    os << *it;
  }
  return os << "}";
}
template <typename T>
ostream &operator<<(ostream &os, const set<T> &v) {
  os << "[";
  typename set<T>::const_iterator it;
  for (it = v.begin(); it != v.end(); it++) {
    if (it != v.begin()) os << ", ";
    os << *it;
  }
  return os << "]";
}
template <typename first, typename second>
ostream &operator<<(ostream &os, const map<first, second> &v) {
  os << "[";
  typename map<first, second>::const_iterator it;
  for (it = v.begin(); it != v.end(); it++) {
    if (it != v.begin()) os << ", ";
    os << it->first << " = " << it->second;
  }
  return os << "]";
}
int32_t main() {
  ios::sync_with_stdio(false);
  long long q;
  cin >> q;
  vector<long long> a;
  while (q--) {
    long long n, k;
    cin >> n >> k;
    a.clear();
    a.resize(n);
    long long ct = 0;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      if ((a[i] % 2) == 1) {
        ct++;
      }
    }
    if (ct < k) {
      cout << "NO\n";
      continue;
    }
    long long diff = ct - k;
    if ((diff % 2) == 1) {
      cout << "NO\n";
      continue;
    }
    cout << "YES\n";
    long long i = 0;
    if (diff > 0) {
      long long ctt = 0;
      for (; i < n; i++) {
        if (a[i] % 2) {
          ctt++;
          if (ctt == diff) {
            i++;
            break;
          }
        }
      }
    }
    vector<long long> ans;
    long long ctt = 0;
    for (; i < n; i++) {
      if (a[i] % 2) {
        ctt++;
        ans.push_back(i + 1);
      }
    }
    ans[ans.size() - 1] = n;
    for (long long i = 0; i < ans.size(); i++) {
      cout << ans[i] << " ";
    }
    cout << "\n";
  }
  return 0;
}
