Add unit tests for RAFT server