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

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n,k,a[301];
        map<int ,int>m;
        cin>>n;
        for(int i=0;i<n;i++)
        {
            cin>>a[i];
            m[a[i]]++;
        }
        sort(a,a+n,greater<int>());
        k=n;
        for(int i=1;i<k&&k<=300;i++)
        {
            for(int j=i-1;j>=0&&k<=300;j--)
            {
                if(m[abs(a[i]-a[j])]==0)
                {
                    a[k]=abs(a[i]-a[j]);
                    m[a[k]]++;
                    k++;
                }
            }
        }
        if(k<=300)
        {
            cout<<"yes"<<endl<<k<<endl;
            for(int i=0;i<k;i++)cout<<a[i]<<" ";
            cout<<endl;
        }
        else cout<<"no"<<endl;
    }
    return 0;
}
