raft: add tests based on section 5.3 in raft paper

for #1408 
is this a general suggestion or specific to this case?