fixed error messages testing