#include <bits/stdc++.h>
using namespace std;
int a[10010];
int main() {
  int q;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    bool f = 0;
    for (int i = 1; i <= n; i++) cin >> a[i];
    for (int i = 2; i < n; i++) {
      if (a[i] > a[i - 1] && a[i] > a[i + 1]) {
        f = 1;
        cout << "YES" << endl;
        cout << i - 1 << " " << i << " " << i + 1 << endl;
        break;
      }
    }
    if (!f) cout << "NO" << endl;
  }
  return 0;
}
