Added test for email validation.