CLOUDIFY-2304 Added test.