raft: fix a incorrect in testMaybeAppend