Introduce fuzzy logic for email checking to make tests less brittle