added test for email pattern