added unit tests for sending first email