added tests for email validation