Moving the email research into unit testing