Added validity checks to testSGP(3)