#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  vector<int> values;
  int T;
  cin >> T;
  while (T--) {
    values.clear();
    map<int, int> indexes;
    bool flag = false;
    int n, bindex;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int value;
      cin >> value;
      values.push_back(value);
      indexes[value] = i;
    }
    for (int i = n; i > 0; i--) {
      int j = indexes[i];
      if (j != 0 && j != n - 1) {
        if (values[j - 1] < i && values[j + 1] < i) {
          flag = true;
          bindex = j;
          break;
        }
      }
    }
    if (flag) {
      cout << "YES"
           << "\n";
      cout << bindex << " " << bindex + 1 << " " << bindex + 2 << "\n";
    } else
      cout << "NO"
           << "\n";
  }
}
