#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
bool compare(T x, U y) {
  return (abs(x - y) <= 1e-9);
}
const int MOD = 1e9 + 7;
void solve() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (auto &x : a) cin >> x;
  for (int i = 1; i < n - 1; i++)
    if (a[i] > max(a[i - 1], a[i + 1])) {
      cout << "YES"
           << "\n";
      cout << i << " " << i + 1 << " " << i + 2;
      return;
    }
  cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
}
