raft: add tests based on section 5.3 in raft paper

for #1408 
i guest a two nodes cluster is enough for this test.