#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void Open() {}
int main() {
  fast();
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long> v(n + 1);
    for (int i = 1; i <= n; i++) {
      cin >> v[i];
    }
    bool f = 0;
    for (int i = 1; i < n; i++) {
      if (abs(v[i] - v[i + 1]) > 1) {
        cout << "YEs"
             << "\n"
             << i << " " << i + 1 << "\n";
        f = 1;
        break;
      }
    }
    if (f == 0)
      cout << "NO"
           << "\n";
  }
}
