#include <bits/stdc++.h>
using namespace std;
long long arr[9999999];
long long arr1[9999999];
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, k, l, sum, i, cont = 0, tt = 0, cc = 0, j = 0;
    cin >> n >> k;
    for (i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] % 2 != 0) {
        tt++;
        cont++;
        if (tt < k) {
          arr1[j] = i + 1;
          j++;
        }
      }
    }
    sum = cont + k;
    if (k > cont) {
      cout << "NO" << endl;
    } else if (sum % 2 != 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      for (i = 0; i < n; i++) {
        if (cc < k - 1) {
          cout << arr1[i] << " ";
          cc++;
        } else
          break;
      }
      cout << n << endl;
    }
  }
}
