tests and code cleanup around deployment and deployable create API calls

these patches are a step toward implementing the missing API calls