#include <bits/stdc++.h>
#define pb push_back
#define sc second
#define fr first
#define mk make_pair
#define ll long long
#define ii pair<intt,intt>
#define mp make_pair
#define scn(x) scanf("%d",&x)
#define Kart ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
typedef  long long intt;
using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        intt a[n];
        intt b[n];
        int i;
        for(i=0; i<n; i++)
            cin>>a[i],b[i]=a[i];
        sort(b,b+n);
        intt st=0,en=n-1;
        intt ans=1e10;
        int ans2=0;
        while(st<=en)
        {
            int mid=(st+en)/2;
            intt have=b[mid];
            for(i=0; i<n; i++)
            {
                if(i!=mid)
                {

                    if(have>=b[i])
                        have+=b[i];
                    else
                        break;
                }
            }
            if(i==n)
                ans=b[mid],ans2=n-mid,en=mid-1;
            else
                st=mid+1;
        }
        cout<<ans2<<endl;
        for(i=0; i<n; i++)
        {
            if(a[i]>=ans)
                cout<<i+1<<" ";
        }
        cout<<endl;

    }
    return 0;
}
