#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> arr;
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int a = 1e9, pos = 1;
    int n;
    cin >> n;
    for (int j = 0; j < n; j++) {
      int x;
      cin >> x;
      arr.push_back(x);
    }
    bool flag = false;
    for (int j = 0; j < n - 1; j++) {
      if (arr[j] < a) {
        a = arr[j];
        pos = j + 1;
      } else if (arr[j] > arr[j + 1] && arr[j] > a) {
        flag = true;
        cout << "YES\n";
        cout << pos << " " << j + 1 << " " << j + 2 << "\n";
        break;
      }
    }
    if (!flag) {
      cout << "NO\n";
    }
    arr.clear();
  }
  return 0;
}
