#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, 1, -1}, dy[] = {1, -1, 0, 0};
void solve() {
  int n;
  cin >> n;
  int a[n + 1];
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    a[x] = i;
  }
  int l = 0, r = n - 1;
  for (int i = n; i > 0; i--) {
    if (a[i] == l) {
      l++;
      continue;
    }
    if (a[i] == r) {
      r--;
      continue;
    }
    cout << "YES" << endl
         << a[i] - 1 + 1 << ' ' << a[i] + 1 << ' ' << a[i] + 1 + 1 << endl;
    return;
  }
  cout << "NO" << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
