#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 7;
int a[1000005];
void solve() {
  int n;
  cin >> n;
  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]) {
      cout << "YES" << endl;
      cout << i - 1 << " " << i << " " << i + 1 << endl;
      return;
    }
  }
  cout << "NO" << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
