#include <bits/stdc++.h>
using namespace std;
void prob() {
  int n, x;
  cin >> n >> x;
  int nbOdd = 0;
  for (int i = 0; i < n; i++) {
    int val;
    cin >> val;
    if (val % 2 == 1) nbOdd++;
  }
  if (nbOdd == 0) {
    cout << "No" << '\n';
  } else {
    if (nbOdd == n && (x % 2 == 0)) {
      cout << "No\n";
    } else if (x == n && (nbOdd % 2 == 0)) {
      cout << "No\n";
    } else {
      cout << "Yes\n";
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    prob();
  }
  return 0;
}
