#include <bits/stdc++.h>
using namespace std;
const int Nmax = 1000005;
const int INF = 1000000000;
const int MOD = 998244353;
int a[Nmax];
int main() {
  int tests;
  cin.sync_with_stdio(false);
  int n;
  cin >> tests;
  while (tests--) {
    cin >> n;
    for (int j = 1; j <= n; j++) {
      cin >> a[j];
    }
    sort(a + 1, a + n + 1);
    int j = 0;
    for (j = n; j; j--) {
      if (a[j] <= j) {
        break;
      }
    }
    cout << j + 1 << "\n";
  }
  return 0;
}
