Refactor all DeployMailer test code into one test file