raft: add several test cases for testMaybeAppend