#include <bits/stdc++.h>
using namespace std;
ifstream f("test.in");
ofstream g("test.out");
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int teste;
  cin >> teste;
  while (teste--) {
    int n, x;
    int pare = 0, impare = 0;
    cin >> n >> x;
    for (int i = 1; i <= n; i++) {
      int a;
      cin >> a;
      pare += !(a % 2);
      impare += a % 2;
    }
    if (impare == 0) {
      cout << "NO\n";
      continue;
    }
    x--;
    impare--;
    while (impare >= 2 and x >= 2) {
      x -= 2;
      impare -= 2;
    }
    while (pare >= 1 and x >= 1) x--, pare--;
    if (x)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
  return 0;
}
