#include <bits/stdc++.h>
using namespace std;
int T, n, nums[100005];
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  cin >> T;
  while (T--) {
    cin >> n;
    for (int i = 1; i <= n; ++i) cin >> nums[i];
    sort(nums + 1, nums + 1 + n);
    int p = n;
    while (p >= 1) {
      if (p >= nums[p]) break;
      --p;
    }
    cout << p + 1 << endl;
  }
  return 0;
}
