#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n;
    cin >> n;
    int arr[n];
    for (int j = 0; j < n; j++) {
      cin >> arr[j];
    }
    sort(arr, arr + n);
    int count = 1;
    int max = 1;
    while (count <= n) {
      if (arr[count - 1] <= count) max = 1 + count;
      count++;
    }
    cout << max << '\n';
  }
}
