added tests for email