Update statistics generator to ignore test data #2492

for #2492 
May be convert to lowecase first? in case the same email appears in different cases.