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