#include <bits/stdc++.h>
using namespace std;

#define ll long long int
const long mod = 10000000007;


  int main()
{
  #ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

  ll t;
  cin>>t;
  while(t--){
    ll n;
    cin>>n;
    set<ll>seth;
    ll f=0;
    for(int i=0;i<n;i++){
      ll x;
      cin>>x;
      if(x<0)f=1;
      seth.insert(x);
    }
    if(f){
      cout<<"NO"<<endl;
      continue;
    }

    for(auto it1=seth.begin();it1!=seth.end() && seth.size()<=300;it1++){
       auto it2 = it1;
       it2++;
       while(it2!=seth.end() && seth.size()<=300) {
         auto temp = *it2-*it1;
         if(seth.find(temp)==seth.end()){
            seth.insert(temp);
            it1=seth.begin();
            it2=it1;
            it2++;
            if(seth.size()>300){
              cout<<"NO"<<endl;
              break;
            }
         }
         else{
           it2++;
         }
       }


    }

       if(seth.size()<=300){
         cout<<"YES"<<endl;
         cout<<seth.size()<<endl;
         for(auto &it:seth){
           cout<<it<<" ";
         }
         cout<<endl;
       }



    
  }


  return 0;
}
