raft: add tests based on section 5.2 in raft paper

#1408 
i use 50*electiontimeout to be round number, so it is 500 rounds.