Fix for intermittent DeploymentScannerTestCase