Fixed test for double PtG. Added new tests for checking PtP error codes.