#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
  int m;
  cin >> m;
  while (m--) {
    int a, b;
    cin >> a >> b;
    int e = 0, o = 0;
    int c[a];
    for (long long int i = 0; i < a; i++) {
      cin >> c[i];
      if (c[i] & 1)
        o++;
      else
        e++;
    }
    int x = 1, y = 0, flag = 0;
    while (1) {
      if (o >= x and e >= b - x) {
        flag = 1;
        break;
      }
      x += 2;
      if (x > b) break;
    }
    cout << (flag ? "YES\n" : "NO\n");
  }
  return 0;
}
