#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long p[n + 1];
    map<long long, long long, greater<long long>> m;
    map<long long, long long, greater<long long>>::iterator it;
    for (long long i = 1; i <= n; i++) {
      cin >> p[i];
      m[p[i]] = i;
    }
    long long fg = 0, st = 1, ed = n, ind;
    for (it = m.begin(); it != m.end(); it++) {
      ind = it->second;
      if (ind == st)
        st++;
      else if (ind == ed)
        ed--;
      else if (ind > st && ind < ed) {
        fg = 1;
        break;
      }
    }
    if (fg) {
      cout << "YES\n";
      cout << st << " " << ind << " " << ed << "\n";
    } else {
      cout << "NO\n";
    }
  }
}
