#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 100;
int T;
int n, a[10009];
int main() {
  for (scanf("%d", &T); T; T--) {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
    }
    for (int i = 2; i < n; i++) {
      if (a[i] > a[i - 1] && a[i] > a[i + 1]) {
        puts("YES");
        printf("%d %d %d\n", i - 1, i, i + 1);
        goto end;
      }
    }
    puts("NO");
  end:;
  }
  return 0;
}
