adding email pattern with tests