#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int arr[n];
    for (int i = 0; i < n; i++) cin >> arr[i];
    int e = 0, o = 0, l = 0;
    for (int i = 0; i < n; i++) {
      if (arr[i] % 2 == 0)
        e++;
      else
        o++;
    }
    for (int i = 0; i <= e; i++) {
      int y = x - i;
      if (y % 2 != 0 && y > 0 && y <= o) {
        l = 1;
        break;
      }
    }
    if (l == 1)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
