Improved dependency fetching for DeploymentAgentTest.