#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5, mod = 1e9 + 7, inf = 1e9 + 7;
int n, k;
int a[N];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  while (q--) {
    int cnt = 0;
    cin >> n >> k;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (a[i] & 1) cnt++;
    }
    if (cnt < k || (cnt - k) % 2 == 1) {
      cout << "NO" << '\n';
      continue;
    }
    cout << "YES" << '\n';
    for (int i = 1; i <= n; i++) {
      if (k == 1) break;
      if (a[i] & 1) {
        cout << i << ' ';
        k--;
      }
    }
    cout << n << '\n';
  }
}
