added tests for sendgrid adapter