#include <bits/stdc++.h>
using namespace std;
int fun(int x, int y, int z) {
  return x * x + y * y + z * z + x * y + y * z + z * x;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    int a[n];
    int f = true;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 1; i < n - 1; i++) {
      if (a[i] > a[i - 1] && a[i] > a[i + 1]) {
        cout << "YES" << endl;
        f = false;
        cout << i << " " << i + 1 << " " << i + 2 << endl;
        break;
      }
    }
    if (f) cout << "NO" << endl;
  }
}
