#include <bits/stdc++.h>
using namespace std;
int main() {
  long int t;
  cin >> t;
  while (t--) {
    long int n, k;
    cin >> n >> k;
    long long int a[n];
    for (long int i = 0; i < n; i++) cin >> a[i];
    vector<long int> x;
    long long int temp = 0, temp1 = 0, ss = k - 1, i = 0;
    for (i = 0; i < n; i++) {
      if (ss == 0) {
        break;
      }
      temp += a[i];
      if (temp % 2 == 1) {
        x.push_back(i + 1);
        temp1++;
        temp = 0;
        ss--;
      }
      if (ss == 0) {
        i++;
        break;
      }
    }
    temp = 0;
    if (ss == 0) {
      for (; i < n; i++) {
        temp += a[i];
      }
      if (temp % 2 == 1) x.push_back(n), temp1++;
      if (temp1 == k) {
        cout << "YES" << endl;
        for (long int i = 0; i < x.size(); i++) cout << x[i] << " ";
        cout << endl;
      } else
        cout << "NO" << endl;
    } else
      cout << "NO" << endl;
  }
}
