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