raft: add tests for maybeappend

the case that commit index < last index in log?