#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void read(T &x) {
  x = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
  x *= f;
}
const int N = 266666;
void FAST() {
  ios::sync_with_stdio(false);
  cin.tie(0);
}
int a[N];
void solve() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> a[i];
  int f = 0;
  for (int i = 1; i < n; ++i) {
    if (abs(a[i + 1] - a[i]) > 1) {
      cout << "YES\n" << i << " " << i + 1 << "\n";
      f = 1;
      break;
    }
  }
  if (!f) cout << "NO\n";
  return;
}
int main() {
  FAST();
  int T;
  cin >> T;
  while (T--) solve();
  return 0;
}
