#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long N = 2 * (1e5) + 2;
long long arr[N];
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    for (long long i = 1; i <= n; ++i) {
      cin >> arr[i];
    }
    bool ans = 0;
    for (long long i = 1; i < n; ++i) {
      if (abs(arr[i] - arr[i + 1]) > 1) {
        ans = true;
        cout << "YES"
             << "\n";
        cout << i << " " << i + 1 << "\n";
        break;
      }
    }
    if (!ans)
      cout << "NO"
           << "\n";
  }
}
