Added macro for testing error messages.
More tests should be added so feel free to check whatever you want.