#include <bits/stdc++.h>
using namespace std;
int main() {
  int te;
  cin >> te;
  while (te--) {
    int n, m, x, ji = 0, ou = 0;
    cin >> n >> m;
    for (int i = 0; i < n; ++i) {
      cin >> x;
      if (x & 1)
        ji++;
      else
        ou++;
    }
    if (ji == 0) {
      puts("No");
      continue;
    }
    ji--;
    m--;
    int q = min(m / 2 * 2, ji / 2 * 2);
    m -= q;
    ou -= m;
    if (ou < 0)
      puts("No");
    else
      puts("Yes");
  }
  return 0;
}
