Added a wee permission check to the TestEmailTask