#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define pb push_back
#define fi first
#define se second
#define in insert
#define mp make_pair
#define mt make_tuple 
#define loop(i,n) for (int i=0;i<n;i++)
#define Loop(i,n) for (int i=1;i<=n;i++)

const int inf=1e18;
const int mod=1e9+7;

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL), cout.tie(NULL);
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    int t,i,n,p,l,c,res=-1,sum;
    cin>>t;
    while(t--){
        cin>>n;
        sum=0;
        res=-1;
        int arr[n], brr[n];
        loop(i,n){
            cin>>arr[i];
            brr[i]=arr[i];
        }
        sort(arr,arr+n);
        sum+=arr[0];
        Loop(i,n-1){
            if(sum<arr[i])
                res=arr[i];
            sum+=arr[i];
        }
        vector<int> v;
        loop(i,n){
            if(brr[i]>=res)
                v.pb(i+1);
        }
        cout<<v.size()<<endl;
        loop(i,v.size()){
            cout<<v[i]<<" ";
        }
        cout<<endl;
    }
}