#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n,flag=0;
        cin>>n;
        int ar[n];
        for(int i=0;i<n;i++)
        {
            cin>>ar[i];
            if(ar[i]<0)
            flag=1;
        }
        if(flag==1)
        cout<<"NO"<<endl;
        else
        {
            sort(ar,ar+n);
            cout<<"YES"<<endl;
            cout<<ar[n-1]+1<<endl;
            for(int i=0;i<=ar[n-1];i++)
            cout<<i<<" ";
            cout<<endl;
        }    
    }
    return(0);
}