Bug fix for max.order.for.projection and message refinment in testSGP