Unit tests for email validation.