raft: add tests based on section 5.3 in raft paper

for #1408 
the first 3 cases seems to be out of the scope of this test.