raft: add tests based on section 5.3 in raft paper

for #1408 
i think we should have a case to ensure we are actually deleting all the entries after the conflicting point. The case 2 might be a replacement.