Correction in testSGP(3) and refinement of logic in getTargetSGP