add raft instance shutdown test and pass it