#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, n, x, y = 0, z = 0, l, sum = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> n >> x;
    int a[n];
    for (int j = 0; j < n; j++) {
      cin >> a[j];
      l = a[j] % 2;
      if (l == 0) y++;
      if (l == 1) z++;
    }
    if (x == n) {
      for (int i = 0; i < n; i++) {
        sum = sum + a[i];
      }
      if (sum % 2 == 0)
        cout << "No"
             << "\n";
      if (sum % 2 != 0)
        cout << "Yes"
             << "\n";
    } else if (x % 2 != 0 && z >= 1)
      cout << "Yes"
           << "\n";
    else if (x % 2 != 0 && z == 0)
      cout << "No"
           << "\n";
    else if (x % 2 == 0 && y >= 1 && z >= 1)
      cout << "Yes"
           << "\n";
    else
      cout << "No"
           << "\n";
    y = 0;
    z = 0;
    sum = 0;
  }
  return 0;
}
