Refactoring test_deploy assertExpectedDeployment fix typo