Remove unused import from tests and have action tests not send emails, even if email sending is enabled globally