#include <bits/stdc++.h>
#define endl '\n'
#define ll long long
#define fori(i,a,b) for(int i = a; i < b; i++)
#define forr(i,a,b) for(int i = a; i >= b; i--)
#define fore(i,a,b) for(int i = a; i <= b; i++)
#define ft first
#define sd second
#define all(v) v.begin(), v.end()
#define sz(v) (int) v.size()
#define pb push_back
#define eb emplace_back
#define ar array
using namespace std;

typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<ii> vii;
typedef vector<ll> vl;

const int Mxn = 2e5 + 5;
ll a[Mxn], b[Mxn];

int main() { 
    ios_base::sync_with_stdio(false); cin.tie(NULL);
    int t;
    cin >> t;
    while(t--) {
        int n;
        cin >> n;
        fori(i,0,n) {
            cin >> a[i];
            b[i] = a[i];
        } 
        sort(b, b+n);
        ll sum = 0; int s = 0;
        fori(i,0,n) {
            if(sum < b[i]) s = i;
            sum += b[i];
        }
        cout << n - s << endl;
        fori(i,0,n) {
            if(a[i] >= b[s]) cout << i+1 << ' ';
        }
        cout << endl;
    }
    return 0; 
}