Fix timing issue on mailgun tests
Update tests to fix async issue