#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T) {
    T--;
    int n, x;
    cin >> n >> x;
    int arr[n];
    int odd = 0, even = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] % 2 == 1)
        odd++;
      else
        even++;
    }
    if (x % 2 == 0) {
      bool flag = true;
      for (int i = 1; i < x; i = i + 2) {
        if (odd >= i && even >= x - i) {
          cout << "YES" << endl;
          flag = false;
          break;
        }
      }
      if (!flag) continue;
      cout << "NO" << endl;
      continue;
    }
    bool flag = true;
    for (int i = 0; i < x; i = i + 2) {
      if (odd >= x - i && even >= i) {
        cout << "YES" << endl;
        flag = false;
        break;
      }
    }
    if (!flag) continue;
    cout << "NO" << endl;
    continue;
  }
  return 0;
}
