#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, t = 0, i, x;
  cin >> a;
  for (i = 1; i <= a; i++) {
    cin >> b;
    vector<int> ch;
    for (int j = 1; j <= b; j++) {
      cin >> c;
      ch.push_back(c);
    }
    sort(ch.begin(), ch.end());
    int k = 1, l = 0;
    for (int j = 0; j < b; j++) {
      if (ch[j] <= j + 1) k = j + 2;
    }
    cout << k << endl;
  }
  return 0;
}
