#include <bits/stdc++.h>
using namespace std;
const long long M = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long T = 1;
  cin >> T;
  while (T--) {
    long long n, i, j, k;
    cin >> n;
    long long p[n];
    for (i = 0; i < n; i++) {
      cin >> p[i];
    }
    bool found = false;
    i = 0, k = n - 1;
    while (i < k) {
      j = i + 1;
      while (j < k) {
        if (p[j] > p[i] && p[j] > p[k]) {
          found = true;
          break;
        }
        j++;
      }
      if (found) {
        break;
      }
      if (p[i] >= p[k]) {
        i++;
      } else {
        k--;
      }
    }
    if (found) {
      cout << "YES\n";
      cout << i + 1 << " " << j + 1 << " " << k + 1 << "\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
