Added macro for testing error messages.

More tests should be added so feel free to check whatever you want.

Review by @vjovanov and @gzm0
Missing newline