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