#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int nn = 2e5 + 5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int i, j, k, l, m, n, x = 0, y = 0, z = 0, e = 10000000070, f = 0, g = 0,
                          h = 0;
    string p, q, s;
    unordered_set<int> sw;
    unordered_map<int, int> mp;
    vector<int> u, v;
    cin >> n;
    int a[n];
    for (i = 0; i < n; i++) {
      cin >> a[i];
    }
    e = a[0];
    m = 0;
    for (i = 1; i < n - 1; i++) {
      if (e < a[i]) {
        for (j = i + 1; j < n; j++) {
          if (a[j] < a[i]) {
            z = 1;
            g = j;
            break;
          }
        }
      }
      if (z == 1) {
        break;
      }
      if (a[i] < e) {
        e = a[i];
        m = i;
      }
    }
    if (z) {
      i += 1;
      j += 1;
      m += 1;
      cout << "YES\n";
      cout << m << " " << i << " " << j << "\n";
    } else {
      cout << "NO\n";
    }
  }
}
