#include <bits/stdc++.h>
using namespace std;
void solveTest() {
  int n, k = 0, x;
  cin >> n >> x;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] % 2 == 1) k++;
  }
  if ((x == n && k % 2 == 0) || k == 0 || (k == n && x % 2 == 0)) {
    cout << "No\n";
  } else {
    cout << "Yes\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  int nn;
  cin >> nn;
  while (nn--) solveTest();
}
