#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int oo = INT_MAX;
const int N = 2e3+5;



void solve()
{
  int n; cin>>n;
  int p, mx = -131897318;
  string hell = "yes";
  while(n--){
    cin>>p;
    if(p<0) hell = "no";
    if(p>mx)  mx = p;
  }
  if(hell=="no")
    cout<<"NO\n";
  else {
    cout<<"YES\n"<<mx+1<<'\n';
    for(int i = 0; i<=mx; i++) cout<<i<<" ";
    cout<<'\n';
  }
}


int main(){
    ios_base::sync_with_stdio(false); cin.tie(nullptr);cout.tie(nullptr);
    int t = 1;
    cin>>t;
    while(t--) solve();
    return 0;
}