adds tests for sending emails