CLOUDIFY-1915 Fixed unit test