#include <bits/stdc++.h>
using namespace std;
int n, x, m;
int k[200010];
int main() {
  ios::sync_with_stdio(0);
  int te;
  cin >> te;
  while (te--) {
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> k[i];
    int a = 0x3f3f3f3f, b = -1, c, d;
    for (int i = 2; i <= n; i++) {
      if (abs(k[i] - k[i - 1]) >= 2) {
        a = -1;
        c = i - 1, d = i;
        break;
      }
    }
    if (a == -1) {
      cout << "YES\n" << c << " " << d << "\n";
    } else
      cout << "NO\n";
  }
  return 0;
}
