#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long arr[n];
    long long i = 0;
    for (i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr + n);
    long long count1 = 1;
    long long tcoun1 = count1;
    for (i = n - 1; i >= 0; i--) {
      if (arr[i] <= i + 1) {
        break;
      } else {
        continue;
      }
    }
    cout << i + 2 << "\n";
  }
}
