added test for mailgun hook