raft: add tests based on section 5.3 in raft paper
Merge pull request #1528 from unihorn/191

raft: add tests based on section 5.3 in raft paper