#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int x, b, c;
    int y[3];
    bool f1 = false, f2 = false;
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int b = 1; b < n - 1; b++) {
      x = b - 1, c = b + 1;
      f1 = false, f2 = false;
      while (x >= 0 && c < n) {
        if (a[x] < a[b]) {
          f1 = true;
          y[0] = x + 1;
        }
        if (a[b] > a[c]) {
          f2 = true;
          y[2] = c + 1;
          y[1] = b + 1;
        }
        if (f1 == true && f2 == true) break;
        x--;
        c++;
      }
      if (f1 == true && f2 == true) {
        break;
      }
    }
    if (f1 == true && f2 == true) {
      cout << "YES" << endl;
      for (int x : y) cout << x << " ";
      cout << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
