#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const double PI = 3.141592653589793238463;
const int INF = 0x3f3f3f3f;
const int INFS = 1000000000;
const long long LLINF = 9223372036854775807;
const long long M = 1000000007;
const double EPS = 1e-8;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) cin >> a[i];
    vector<long long> mn(n), mns(n);
    mn[0] = 0;
    mns[n - 1] = n - 1;
    for (long long i = 1; i < n; i++) {
      if (a[mn[i - 1]] < a[i])
        mn[i] = mn[i - 1];
      else
        mn[i] = i;
    }
    for (long long i = n - 2; i > -1; i--) {
      if (a[mns[i + 1]] < a[i])
        mns[i] = mns[i + 1];
      else
        mns[i] = i;
    }
    bool ok = false;
    for (long long i = 1; i < n - 1; i++) {
      if (a[i] > a[mn[i - 1]] && a[i] > a[mns[i + 1]]) {
        cout << "YES"
             << "\n";
        ok = true;
        cout << mn[i - 1] + 1 << ' ' << i + 1 << ' ' << mns[i + 1] + 1 << "\n";
        break;
      }
    }
    if (!ok)
      cout << "NO"
           << "\n";
  }
  return 0;
}
