emails fixes test