CLOUDIFY-1660 fixed deployment factory unit test