raft: add tests based on section 5.1 in raft paper

for #1408 
kk