raft: use newRaft
Merge pull request #1945 from xiang90/raft_test

raft: use newRaft