#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int i, a[n];
    for (i = 0; i < n; i++) cin >> a[i];
    bool ans = false;
    for (i = 1; i < n && !ans; i++) {
      if (a[i - 1] < a[i] && a[i + 1] < a[i]) ans = true;
    }
    if (ans) {
      cout << "YES\n";
      cout << i - 1 << " " << i << " " << i + 1 << "\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
