Add email checking to tests