#include <bits/stdc++.h>
#define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

using namespace std;

typedef long long ll;

const int N = 2e5 + 5;

int n, k, m, arr[N];

int main()
{
    int t;
    scanf("%d", &t);
    while(t--)
    {
        scanf("%d%d%d", &n, &k, &m);
        for(int i = 0 ; i < m ; i++) scanf("%d", arr + i);
        bool valid = false;
        for(int i = 1, c = 0 ; i <= n ; i++)
        {
            if(c < m and i == arr[c])
            {
                int lf = (i - 1 - c), rt = (n - i + 1 - (m - c));
                if(lf >= (k / 2) and rt >= (k / 2))
                {
                    valid = true;
                    break;
                }
                c++;
            }
        }
        valid &= (n - m) % (k - 1) == 0;
        puts(valid ? "YES" : "NO");
    }
    return 0;
}