#include<bits/stdc++.h>
using namespace std;
int func(long b[], int count)
{
    bool found = false;
    for(int i=0; i<count; ++i)
    {
        for(int j=i+1; j<count; ++j)
        {
            found = false;
            for(int k=0; k<count; ++k)
            {
                //cout<< b[i] <<" "<<b[j]<< " "<<b[k]<<endl; 
                if(abs(b[i]-b[j])==b[k])
                {
                    found = true;
                    //cout<<"found"<<endl;
                    break;
                }
            }
            if(!found)
            {
                b[count++]=abs(b[i]-b[j]);
                return count;
            }
        }
    }

    return count;
}
int main()
{
    int t;
    cin>>t;
    int n,count;
    bool change;

    while(t--)
    {
        change=true;
        cin>>n;
        int a[n];
        long b[300];
        count=0;
        for(int i=0; i<n; ++i)
        {
            cin>>a[i];
            if(a[i]<0)
            {
                change=false;
            }
            count++;
            b[i]=a[i];
        }
        if(!change)
        {
            cout<<"no"<<endl;
            continue;
        }
        change = true;
        while(count<300 && change)
        {
            //cout <<count<<" count real "<<func(b,count)<<" count calcualted"<<endl;
            if(count == func(b,count))
                change=false;
            else
            {
                count=func(b,count);
            }
            
        }
        cout<<"yes"<<endl<<count<<endl;
        for(int i=0; i<count; ++i)
            cout<<b[i]<<" ";
        cout<<endl;

    }

}