#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; ++i) {
      cin >> a[i];
    }
    int ls[n], rs[n];
    int mn = 1000000;
    for (int i = 0; i < n; i++) {
      ls[i] = min(mn, a[i]);
      mn = ls[i];
    }
    mn = 1000000;
    for (int i = n - 1; i >= 0; i--) {
      rs[i] = min(mn, a[i]);
      mn = rs[i];
    }
    int i1 = -1, j1 = -1, k1 = -1;
    for (int i = 1; i < n - 1; i++) {
      if (ls[i] < a[i] and rs[i] < a[i]) {
        i1 = ls[i];
        j1 = rs[i];
        k1 = a[i];
      }
    }
    if (i1 == -1 or j1 == -1 or k1 == -1)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (int i = 0; i < n; i++) {
        if (a[i] == i1) cout << i + 1 << " ";
        if (a[i] == k1) cout << i + 1 << " ";
        if (a[i] == j1) cout << i + 1 << " ";
      }
      cout << endl;
    }
  }
}
