raft: refactor restart test