#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];
    int f = 1;
    for (int i = 1; i < n - 1; i++) {
      if (A[i] > A[i - 1] && A[i] > A[i + 1]) {
        f = 0;
        cout << "YES" << endl;
        cout << i << " " << i + 1 << " " << i + 2 << endl;
        break;
      }
    }
    if (f) cout << "NO" << endl;
  }
  return 0;
}
