added unit testing for email format