Add unit test for use deployment with a deployment_id not found

Change-Id: I5554d1e2f41c444d3a9922779395a5dbdb18f31a