#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      v[x - 1] = i;
    }
    int start = 0, end = n - 1;
    for (int i = n - 1; i > -1; i--) {
      if (v[i] == start) {
        start++;
      } else if (v[i] == end)
        end--;
      else {
        cout << "YES"
             << "\n";
        cout << v[i] << " " << v[i] + 1 << " " << v[i] + 2 << "\n";
        break;
      }
      if (i == 0) {
        cout << "NO"
             << "\n";
      }
    }
  }
  return 0;
}
