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