Add tests for error messages
Add tests for error messages