tests for generating error messages are added