raft: add tests for maybeappend
raft: add a test case for testLogMaybeAppend
raft: add several test cases for testMaybeAppend
Merge pull request #1469 from xiangli-cmu/raft_log_test

raft: add tests for maybeappend