#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 13, big = 1e18, mod = 1e9 + 7, LOG = 30;
const double pi = acos(-1);
long long n, m, t;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    map<long long, long long> mp;
    for (int i = 1; i <= n; i++) cin >> m, mp[m]++;
    long long ans = 1, now = 0;
    for (auto p : mp) {
      now += p.second;
      if (ans + now - 1 >= p.first) ans += now, now = 0;
    }
    cout << ans << endl;
  }
}
