#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    long long n, k;
    cin >> n >> k;
    long long arr[n], cnt = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] & 1) {
        cnt++;
      }
    }
    if (cnt < k or cnt % 2 != k % 2) {
      cout << "NO" << endl;
      continue;
    }
    cout << "YES" << endl;
    int count = 0;
    for (int i = 0; i < n; i++) {
      if (arr[i] & 1 and count < (k - 1)) {
        count++;
        cout << i + 1 << " ";
      }
      if (count >= k) {
        break;
      }
    }
    cout << n << endl;
  }
}
