Refrain from sending emails in API tests