#include <bits/stdc++.h>
using namespace std;
const int N = 1010;
int n;
int a[N];
int main() {
  int T;
  cin >> T;
  while (T--) {
    cin >> n;
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    bool flag = false;
    for (int i = 1; i < n - 1; i++)
      if (a[i] < a[i + 1] && a[i + 1] > a[i + 2]) {
        puts("YES");
        cout << i << " " << i + 1 << " " << i + 2 << endl;
        flag = true;
        break;
      }
    if (!flag) puts("NO");
  }
  return 0;
}
