add test for handlePrepare, and panic test for handlePropose