Added unit tests for EmailModule and SendEmailTask