#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    long long arr[n];
    for (long long i = 0; i < n; i++) cin >> arr[i];
    int even = 0;
    int odd = 0;
    for (long long i = 0; i < n; i++) {
      if (arr[i] % 2 == 0)
        even++;
      else
        odd++;
    }
    if (odd == 0)
      cout << "No"
           << "\n";
    else if (k > odd) {
      if (odd % 2 == 0 && odd > 0) {
        k = k - odd;
        k = k + 1;
      } else {
        k = k - odd;
      }
      if (even < k)
        cout << "No"
             << "\n";
      else
        cout << "Yes"
             << "\n";
    } else {
      if (k == odd) {
        if (odd % 2 != 0)
          cout << "Yes"
               << "\n";
        else {
          k = k - odd + 1;
          if (even >= k)
            cout << "Yes"
                 << "\n";
          else
            cout << "No"
                 << "\n";
        }
      } else {
        if (k % 2 != 0)
          cout << "Yes"
               << "\n";
        else {
          if (even >= 1)
            cout << "Yes"
                 << "\n";
          else
            cout << "No"
                 << "\n";
        }
      }
    }
  }
}
