#include<bits/stdc++.h>
using namespace std;
typedef long long ll;


int main() {

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	int t;
	cin >> t;
	while (t--) {
		ll n;
		cin >> n ;
		vector<ll>o(n), v(n);
		ll sum = 0, val, ans = 1;
		for (int i = 0; i < n; i ++) {
			cin >> v[i];
			sum += v[i];
		}
		o = v;
		sort(v.begin(), v.end());
		for (int i = n - 1; i >= 0; --i) {
			sum -= v[i];
			val = v[i];
			if (sum < v[i]) {
				ans = n - i;
				break;
			}
		}
		cout << ans << "\n";
		for (int i = 0; i < n; ++i) {
			if (o[i] >= val) {
				cout << i + 1 << " ";
			}
		}
		cout << "\n";
	}
}