#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n{0};
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    int m = sizeof(arr) / sizeof(arr[0]);
    sort(arr, arr + m);
    int best = 0, sum = 0;
    for (int k = 0; k < m; k++) {
      if (k + 1 >= arr[k]) {
        sum = k + 1;
      }
    }
    cout << sum + 1 << "\n";
  }
}
