fixed testDeployPlan method