Add unit tests for mailgun output