#include <bits/stdc++.h>
using namespace std;
static const int MAXN = 1e5 + 10;
int a[MAXN];
int main() {
  int T, n;
  cin >> T;
  while (T--) {
    cin >> n;
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    int k = 1;
    for (int i = n - 1; i >= 0; i--)
      if (a[i] <= i + 1) {
        k = i + 2;
        break;
      }
    cout << k << endl;
  }
  return 0;
}
