#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n, x;
    cin >> n >> x;
    int odd = 0, even = 0;
    for (int i = 1; i <= n; i++) {
      int m;
      cin >> m;
      if (m % 2 == 0)
        even++;
      else
        odd++;
    }
    if (x % 2 == 1) {
      if (odd == 0) {
        printf("No\n");
      } else if (x == n && odd % 2 == 0) {
        printf("No\n");
      } else {
        printf("Yes\n");
      }
    } else {
      if (even == 0 || odd == 0) {
        printf("No\n");
      } else if (x == n && odd % 2 == 0) {
        printf("No\n");
      } else {
        printf("Yes\n");
      }
    }
  }
  return 0;
}
