#include <stdio.h>
#define gc getchar_unlocked
#define pc putchar_unlocked
inline int scan(){register int n=0,c=gc();while(c<'0'||c>'9')c=gc();while(c<='9'&&c>='0')n=(n<<1)+(n<<3)+c-'0',c=gc();return n;}
int main(void){
int i,t,n,k,x,count=0;
t=scan();
while(t--){
n=scan();
k=scan();
while(n--){
x=scan();
if(x%2==0) count++;
}//while
if (count
>= k
) printf("\nYES"); count=0;
}//while
return 0;
}
//STDIN Input : 4 2 1 1 2 3 2 2 6 5 3 3 2 4 5 4 2 1 2 4 5
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIGdjIGdldGNoYXJfdW5sb2NrZWQKI2RlZmluZSBwYyBwdXRjaGFyX3VubG9ja2VkCmlubGluZSBpbnQgc2Nhbigpe3JlZ2lzdGVyIGludCBuPTAsYz1nYygpO3doaWxlKGM8JzAnfHxjPic5JyljPWdjKCk7d2hpbGUoYzw9JzknJiZjPj0nMCcpbj0objw8MSkrKG48PDMpK2MtJzAnLGM9Z2MoKTtyZXR1cm4gbjt9IAoKaW50IG1haW4odm9pZCl7CiAgICBpbnQgaSx0LG4sayx4LGNvdW50PTA7Cgl0PXNjYW4oKTsKICAgIAoJd2hpbGUodC0tKXsKCQluPXNjYW4oKTsKCQlrPXNjYW4oKTsKCQl3aGlsZShuLS0pewoJCQl4PXNjYW4oKTsKCQkJaWYoeCUyPT0wKSBjb3VudCsrOwoJCX0vL3doaWxlCgkJaWYgKGNvdW50ID49IGspIHByaW50ZigiXG5ZRVMiKTsKCQllbHNlIHByaW50ZigiXG5OTyIpOwogICAgICAgIGNvdW50PTA7Cgl9Ly93aGlsZQogCiByZXR1cm4gMDsKfQoKLy9TVERJTiBJbnB1dCA6IDQgMiAxIDEgMiAzIDIgMiA2IDUgMyAzIDIgNCA1IDQgMiAxIDIgNCA1