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