mark error messages and test