#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  size_t T;
  cin >> T;
  for (size_t tc = 1; tc <= T; tc++) {
    int n;
    cin >> n;
    int a[n];
    for (size_t i = 0; i < n; i++) {
      cin >> a[i];
    }
    int x = 0, z = -1, y = -1;
    bool l = 0, r = 0;
    for (size_t i = 1; i < n; i++) {
      if (!l) {
        if (a[x] < a[i]) {
          y = i;
          l = 1;
        } else {
          x = i;
        }
      } else {
        if (a[y] > a[i]) {
          z = i;
          r = 1;
          break;
        } else {
          y = i;
        }
      }
    }
    if (l && r) {
      cout << "YES"
           << "\n"
           << x + 1 << " " << y + 1 << " " << z + 1 << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  }
  return 0;
}
