Added search_email and tests for it