#include <bits/stdc++.h>
using namespace std;
string getResult(int x, int even, int odd) {
  for (int i = 1; i <= x; i += 2)
    if ((i <= odd) && (x - i) <= even) return "Yes";
  return "No";
}
int main() {
  int tc, n, x, i, odd, even, p;
  scanf("%d", &tc);
  while (tc--) {
    scanf("%d %d", &n, &x);
    odd = even = 0;
    while (n--) {
      scanf("%d", &p);
      p % 2 == 0 ? ++even : ++odd;
    }
    printf("%s\n", getResult(x, even, odd).c_str());
  }
  return 0;
}
