CLOUDIFY-2179 Added test.