fix test in set up preparing instance
add handlePrepareReply
small modify
finish handle prepare reply
Merge pull request #28 from fengjingchao/inst

Inst
test and refactor
Merge pull request #30 from fengjingchao/inst

test and refactor