#include <bits/stdc++.h>
using namespace std;
const int N = 1e9 + 7;
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  for (int i = 1; i < n - 1; i++) {
    if (v[i] > v[i - 1] && v[i] > v[i + 1]) {
      cout << "YES";
      cout << endl;
      ;
      cout << i;
      cout << " ";
      ;
      cout << i + 1;
      cout << " ";
      ;
      cout << i + 2;
      return;
    }
  }
  cout << "NO";
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
}
