Add test for Deployer._prepareServiceToStop