raft: add tests based on section 5.3 in raft paper