#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  vector<long long int> arr(n);
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  sort(arr.begin(), arr.end());
  long long int ans = 1;
  long long int cnt = 1;
  for (long long int i = 0; i < n; i++) {
    if (arr[i] <= i + 1) {
      ans = i + 2;
    }
  }
  cout << ans << endl;
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
