CLOUDIFY-2202 Added tests.