testing for error messages