#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void coder_RB6() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
bool comp(long long int a, long long int b) { return (a > b); }
int32_t main() {
  coder_RB6();
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    vector<long long int> a;
    for (long long int i = 0; i < n; i++) {
      long long int x;
      cin >> x;
      a.push_back(x);
    }
    long long int flag = 0;
    long long int index;
    for (long long int i = 1; i < n - 1; i++) {
      if (a[i] > a[i - 1] && a[i] > a[i + 1]) {
        flag = 1;
        index = i;
        break;
      }
    }
    if (flag == 1) {
      cout << "YES" << endl;
      cout << index << " " << index + 1 << " " << index + 2 << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
