Secondly as a part of the nuclear deal, the restrictions are on new reactors not old ones. India can still use the old reactors to produce bombs.
As far as testing bombs is concerned, why do u need to test them when you have the capability to develop it.. What are you going to do with the new designs of bombs? Can China test the bombs so easily being a part of CTBT?