test for invalid email address and rm file