refactored emailvalidator test