raft: add tests based on section 5.3 in raft paper

for #1408 
we do not do this, the execution part, in our raft impl.