Added tests for the error messages.