#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read()
{
    char c = getchar();
    int x = 0, f = 1;
    while (c < '0' || c > '9')
    {
        if (c == '-')
            f = -1;
        c = getchar();
    }
    while (c >= '0' && c <= '9')
    {
        x = (x << 1) + (x << 3) + (c ^ 48);
        c = getchar();
    }
    return x * f;
}
template <class cl>
void put(cl x)
{
    if (x < 0)
        putchar('-'), x = -x;
    if (x > 9)
        put(x / 10);
    putchar(x % 10 + '0');
    return;
}
int n;
int a[55];
signed main()
{
    int t;
    t=read();
    int n;
    while(t--)
    {
        n=read();
        int zheng=0,fu=0;
        for(int i=1;i<=n;i++)
        {
            a[i]=read();
            if(a[i]>=0) zheng++;
            else fu++;
        }
        if( fu !=0)
        {
            puts("no");continue;
        }
        else 
        {
            puts("yes");
            sort(a+1,a+1+n);
            if(a[n]>=0)
            {
                cout<<a[n]+1<<'\n';
                for(int i=0;i<=a[n];i++)
                {
                    cout<<i<<" ";
                }
                cout<<'\n';
            }
        }
    }
    return 0;
}