#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int n, sum = 0, ct = 0, m, l, r, k, ans = 0;
    cin >> n;
    long long int a[n];
    for (long long int i = 0; i < n; i++) {
      cin >> a[i];
    }
    sort(a, a + n);
    ct = 1;
    for (long long int i = n - 1; i >= 0; i--) {
      if (a[i] <= i + 1 + sum) ct++, sum++;
    }
    cout << ct << endl;
  }
  return 0;
}
