#include <bits/stdc++.h>
using namespace std;
int solution() {
  int n;
  cin >> n;
  vector<int> main;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    main.push_back(temp);
  }
  int low = 0;
  for (int i = 1; i < n - 1; i++) {
    int peak = main[i];
    if (peak > main[low]) {
      for (int j = i + 1; j < n; j++) {
        if (main[j] < peak) {
          cout << "YES"
               << "\n";
          int first = low + 1;
          int second = i + 1;
          int third = j + 1;
          cout << first << " " << second << " " << third << "\n";
          return 0;
        }
      }
    } else {
      if (peak < main[low]) {
        low = i;
      }
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
int main(int argc, const char* argv[]) {
  int num;
  cin >> num;
  for (int i = 0; i < num; i++) {
    solution();
  }
  return 0;
}
