#include <bits/stdc++.h>
using namespace std;
const double pi = 3.14159265358979323846;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    long long i = 0, f = 0;
    for (i = 1; i < n - 1; i++) {
      if (a[i] > a[i - 1] && a[i] > a[i + 1]) {
        f = 1;
        break;
      }
    }
    if (!f)
      cout << "NO\n";
    else {
      cout << "YES\n";
      cout << i << " " << i + 1 << " " << i + 2 << "\n";
    }
  }
}
