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