Added tests for legacy REST-calls related to "Deployment" resource