raft: add isStateEqual test