#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  while (cin >> t) {
    for (int i = 0; i < t; ++i) {
      int n;
      cin >> n;
      int p[n], ans = 0;
      for (int i = 0; i < n; ++i) cin >> p[i];
      for (int i = 1; i < n - 1; ++i)
        if (p[i] > p[i - 1] && p[i] > p[i + 1]) {
          ans = i;
          break;
        }
      if (ans == 0)
        cout << "NO";
      else
        cout << "YES\n" << ans << " " << ans + 1 << " " << ans + 2;
      cout << endl;
    }
  }
}
