add test for recvPrepare, change some func() names in phase2_test