Fix failing attrib_has_deployment unit tests [2/2]

Fixes for failing attrib_has_deployment tests. Handle saving and retrieving properly and check for the appropriate deployment.




Crowbar-Pull-ID: 012cf638ef15bef77556a0340cd2a37a2e918663

Crowbar-Release: development