Added test to check instanceof mailgun.api