#include <bits/stdc++.h>
using namespace std;
long long n, i, sum, t;
long long a[10000];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 1; i <= n; i++) {
      cin >> a[i];
    }
    for (i = 2; i < n; i++) {
      if (a[i - 1] < a[i] && a[i] > a[i + 1]) {
        cout << "YES" << endl;
        cout << i - 1 << " " << i << " " << i + 1 << endl;
        break;
      }
    }
    if (i >= n) {
      cout << "NO" << endl;
    }
  }
}
