raft: add a test case for testLogMaybeAppend