Yes, India did agree to a self imposed moratorium. What is the point in testing nukes when you will never ever use them. Except for the US which used it against Japan, no country has ever tested nukes against another. This being the case where is the need for them. If you want to use em against your enemies, just test them across the borders. After all, unlike US we don't have our enemies far and away. They up close across our border. Just drop a few of them in China and Pakistan. Test them there.