#include <bits/stdc++.h>
using namespace std;
long long gc(long long a, long long b) {
  if (b == 0) return a;
  return gc(b, a % b);
}
long long lc(long long a, long long b) { return (a * b) / gc(a, b); }
long long help(long long a, long long b) { return a / b; }
int solve(vector<int> &v, int n) {
  sort(v.begin(), v.end());
  int cnt = 1;
  int tmp = -1;
  int ans = 1;
  for (int i = n - 1; i >= 0; i--) {
    if ((i + 1) >= v[i]) {
      ans = i + 2;
      break;
    }
  }
  return ans;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    cout << solve(v, n) << endl;
  }
  return 0;
}
