//Shridhar Thakur's Attempt to understand code
//Things to remember : -
//Check for dividng by 0
//Avoid using floating-point numbers when precise computation is needed for cases in division by 3 or other numbers
#include <bits/stdc++.h>
using namespace std;
#define M 1000000000000
#define fo(i, n) for (i = 0; i < n; i++)
#define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll long long
#define si(x) scanf("%d", &x)
#define sl(x) scanf("%lld", &x)
#define ss(s) scanf("%s", s)
#define pi(x) printf("%d\n", x)
#define pl(x) printf("%lld\n", x)
#define ps(s) printf("%s\n", s)
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << ", " << #y << "=" << y << endl
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
#define tr(it, a) for (auto it = a.begin(); it != a.end(); it++)
#define PI 3.1415926535897932384626
typedef pair<int, int> pii;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pii> vpii;

int main()
{
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif
    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        vector<pair<ll,int> >v;
        for(int i=0;i<n;i++){
            ll x;
            cin>>x;
            v.pb(mp(x,i+1));
        }
        sortall(v);
        vector<ll>prefix;
        prefix.pb(v[0].F);
        for(int i=1;i<n;i++){
            prefix.pb(v[i].F+prefix[i-1]);
        }
        vector<int>possible;
        possible.pb(v[n-1].S);
        for(int i=n-2;i>=0;i--){
            if(prefix[i]>=v[i+1].F){
                possible.pb(v[i].S);
            }else{
                break;
            }
        }
        sortall(possible);
        cout<<possible.size()<<"\n";
        for(auto&it:possible){
            cout<<it<<" ";
        }
        cout<<"\n";
    }
    return 0;
}