raft: add tests based on section 5.2 in raft paper
Merge pull request #1471 from unihorn/189

raft: add tests based on section 5.2 in raft paper