#include <bits/stdc++.h>
using namespace std;
int a[200005];
signed main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 0; i <= n + 1; i++) a[i] = 0;
    for (int i = 0; i < n; i++) {
      int k;
      cin >> k;
      a[k]++;
    }
    for (int i = 1; i <= n + 1; i++) {
      a[i] = a[i - 1] + a[i];
    }
    int ans = 1;
    for (int i = 1; i <= n + 1; i++) {
      if (a[i] >= i) ans = a[i] + 1;
    }
    cout << ans << endl;
  }
}
