#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    int k;
    cin >> n >> k;
    int arr[n];
    int even = 0;
    int odd = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      if (arr[i] % 2 == 0)
        even++;
      else
        odd++;
    }
    int flag = 0;
    for (int i = 1; i <= odd; i = i + 2) {
      int sum = i;
      for (int j = 0; j <= even; j++) {
        sum = i + j;
        if (sum == k) {
          flag = 1;
          break;
        }
      }
      if (flag == 1) break;
    }
    if (flag == 0)
      cout << "NO"
           << "\n";
    else
      cout << "YES"
           << "\n";
  }
  return 0;
}
