#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, k;
    cin >> n >> k;
    long long int arr[n];
    long long int i;
    for (i = 0; i <= n - 1; i++) {
      cin >> arr[i];
    }
    long long int temp = k;
    vector<long long int> v;
    long long int sum = 0;
    for (i = 0; i <= n - 1; i++) {
      sum = sum + arr[i];
      if (sum % 2 != 0 && temp > 1) {
        v.push_back(i);
        sum = 0;
        temp--;
      }
    }
    if (sum % 2 == 0) {
      cout << "NO"
           << "\n";
    } else {
      v.push_back(n - 1);
      cout << "YES"
           << "\n";
      for (i = 0; i < v.size(); i++) {
        cout << v[i] + 1 << " ";
      }
      cout << "\n";
    }
  }
  return 0;
}
