raft: fix error message format in test