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