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