email and tests