[#1224] fix error messages in tests