#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0;
  char c = getchar();
  bool f = 0;
  while (!isdigit(c)) f |= (c == '-'), c = getchar();
  while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
  return f ? -x : x;
}
int t;
int n;
int a[100005];
int main() {
  t = read();
  while (t--) {
    memset(a, 0, sizeof(a));
    n = read();
    for (register int i = 1; i <= n; ++i) a[i] = read();
    sort(a + 1, a + n + 1);
    int ans = 1;
    for (register int i = n; i >= 1; --i)
      if (i >= a[i]) {
        ans = i + 1;
        break;
      }
    printf("%d\n", ans);
  }
  return 0;
}
