#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    int k;
    cin >> n >> k;
    int octr = 0;
    int a[n];
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 != 0) octr++;
      sum = sum + a[i];
    }
    if (octr >= k) {
      if ((sum % 2 != 0 && k % 2 != 0) || (sum % 2 == 0 && k % 2 == 0)) {
        cout << "YES" << endl;
        int f = 0;
        while (k > 1) {
          if (a[f] % 2 != 0) {
            cout << f + 1 << " ";
            k--;
          }
          f++;
        }
        cout << n << " ";
        cout << endl;
      } else
        cout << "NO" << endl;
    } else
      cout << "NO" << endl;
  }
}
