#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int n;
  std::vector<int> gmothers;
  int j;
  for (int i = 0; i < t; i++) {
    gmothers.clear();
    cin >> n;
    gmothers.resize(n);
    for (j = 0; j < n; j++) {
      cin >> gmothers[j];
    }
    std::sort(gmothers.begin(), gmothers.end());
    j = n - 1;
    while (j >= 0 && gmothers[j] > j + 1) {
      j--;
    }
    if (j == n - 1)
      std::cout << n + 1 << std::endl;
    else if (j == -1) {
      std::cout << 1 << std::endl;
    } else
      std::cout << j + 2 << std::endl;
  }
  return 0;
}
