raft: add tests based on section 5.3 in raft paper

for #1408 
move the entries to the first line of this function
in the tests table, we can use (ents[0].Index, ents[0].Term+1) to form a mismatch.