#include <bits/stdc++.h>

using namespace std;

int main()
{
   int t;
   cin>>t;
   while(t--)
   {
       int n;
       cin>>n;
       vector<int>a(n);
       set<int>s;
       int ma=INT_MIN;
       int f=0;
       for(int i=0;i<n;i++)
       {cin>>a[i];
         if(ma<a[i])
         ma=a[i];
           if(a[i]<0)
           {f=1;
           }
           if(s.find(a[i])!=s.end())
           s.insert(a[i]);
       }
       sort(a.begin(),a.end());
       
       
       
       if(f)
       cout<<"NO"<<endl;
       else 
       {   cout<<"YES"<<endl;
           cout<<ma+1<<endl;
           for(int i=0;i<=ma;i++)
           {
            cout<<i<<" ";   
           }
           cout<<endl;
       }
       
   }
   
   return 0;
}