#include<bits/stdc++.h>usingnamespace std;constint N =2e5+10;int n, x, m;int k[N];intmain(){int te;
cin >> te;while(te--){
cin >> n;for(int i =1; i <= n; i++)cin >> k[i];bool flag =false;int l, r;for(int i =2; i <= n; i++)if(abs(k[i]- k[i -1])>=2){
flag =true;
l = i -1, r = i;break;}if(flag)
cout <<"YES\n"<< c <<" "<< d <<"\n";else cout <<"NO\n";}return0;}