//g++  7.4.0

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
int a[100];
int b[100];
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        vector<pair<int,int>>v;
        for(int i=0;i<n;i++)
        {
            int x;
            cin>>x;
            v.push_back({x,i});
        }
        sort(v.begin(),v.end());
       ll int x=0,j=-1;
         vector<int>vv;
        for(int i=0;i<n-1;i++)
        {
            x=x+v[i].first;
            if(x>=v[i+1].first)
            {
               // cout<<v[i].first<<" "<<x<<endl;
                vv.push_back(v[i].second);
            }
            else
            {
                vv.clear();
            }
            
        }
        if(vv.size()==0)
        {
            cout<<1<<endl;
            cout<<v[n-1].second+1<<endl;
        }
        else
        {
            if(x>=v[n-1].first)
            vv.push_back(v[n-1].second);
            cout<<vv.size()<<endl;
            sort(vv.begin(),vv.end());
            for(int i=0;i<vv.size();i++)
            {
                cout<<vv[i]+1<<" ";
            }
            cout<<endl;
        }
    }
}