add tests for deployments scoping