CLOUDIFY-2060 Added tests.