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