Code tests for SendGrid