raft: add tests based on section 5.3 in raft paper

for #1408 
the test happens when it commits the first entry after leader, i will use commitNoop here.