added new test cases for P2