#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
using vll = vector<ll>;
using si = set<int>;
using sll = set<ll>;
int main() {
  cin.tie(NULL);
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vi a(n);
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    bool can = false;
    for (int i = 1; i < n; i++) {
      if (abs(a[i - 1] - a[i]) >= 2) {
        cout << "YES" << endl;
        cout << i << " " << i + 1 << endl;
        can = true;
        break;
      }
    }
    if (!can) {
      cout << "NO" << endl;
    }
  }
  return 0;
}
