added e-mail test code