#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long int tt;
  cin >> tt;
  while (tt--) {
    long long int n;
    cin >> n;
    long long int a[n];
    for (long long int i = 0; i < n; i++) cin >> a[i];
    long long int f = -1, s = -1, t = -1, c = 0;
    for (long long int i = 0; i < n; i++) {
      if (a[i] < a[i + 1] && !c) {
        f = i, s = i + 1;
        c = 1;
        continue;
      }
      if (c) {
        if (a[s] > a[i]) {
          t = i;
          break;
        } else if (a[f] < a[i])
          s = i;
        else if (a[f] > a[i])
          f = i;
      }
    }
    if (f == -1 || s == -1 || t == -1) {
      cout << "NO";
    } else
      cout << "YES\n" << f + 1 << " " << s + 1 << " " << t + 1;
    cout << "\n";
  }
  return 0;
}
