#include <bits/stdc++.h>
using namespace std;
void JIZZ(string output = "") {
  cout << output;
  exit(0);
}
const long double PI = 3.14159265358979323846264338327950288;
const long double eps = 1e-10;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; ++i) cin >> a[i];
    bool yes = 0;
    for (int i = 1; i < n; ++i) {
      if (abs(a[i] - a[i - 1]) > 1) {
        cout << "YES" << '\n';
        cout << i << ' ' << i + 1 << endl;
        yes = 1;
        break;
      }
    }
    if (!yes) cout << "NO" << '\n';
  }
}
