Improve testEmailDomain method.