Bug fix for testSGP(2d)