#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0), cin.tie(0);
  long long T;
  cin >> T;
  while (T--) {
    long long n, k = 1;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    sort(a, a + n);
    for (long long i = n - 1; i >= 0; i--) {
      if (i + 1 >= a[i]) {
        k = i + 2;
        break;
      }
    }
    cout << k << "\n";
  }
}
