testcase for p2