#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-11;
const int INF = 0x7FFFFFFF;
template <class T>
inline bool checkmin(T &a, T b) {
  return b < a ? a = b, 1 : 0;
}
template <class T>
inline bool checkmax(T &a, T b) {
  return b > a ? a = b, 1 : 0;
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int T;
  cin >> T;
  for (int cas = 0; cas < (int)T; cas++) {
    int n;
    cin >> n;
    vector<int> v(n);
    map<int, int> mp;
    for (int i = 0; i < (int)n; i++) {
      cin >> v[i];
      mp[v[i]]++;
    }
    int ans = 0, now = 0;
    for (auto &p : mp) {
      now += p.second;
      if (p.first <= now) ans = now;
    }
    cout << ans + 1 << endl;
  }
  return 0;
}
