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