#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  while (n != 0) {
    int m, k;
    cin >> m >> k;
    int s = 0;
    int a[m + 1];
    int j = 0;
    for (int i = 1; i <= m; i++) {
      cin >> s;
      if (s % 2 == 1) {
        j++;
        a[j] = i;
      }
    }
    if ((j % 2 == k % 2) && j >= k) {
      cout << "YES" << endl;
      for (int i = 1; i <= k - 1; i++) {
        cout << a[i] << ' ';
      }
      cout << m;
      cout << endl;
    } else {
      cout << "NO" << endl;
    }
    n--;
  }
}
