Added tests for exception messages