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