#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    bool f = 0;
    int index = 0;
    for (int i = 1; i < n - 1; i++) {
      if (a[i] > a[i + 1] && a[i] > a[i - 1]) {
        f = 1;
        index = i - 1;
      }
    }
    if (f == 1) {
      cout << "YES" << endl;
      cout << index + 1 << " " << index + 2 << " " << index + 3 << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
