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