CLOUDIFY-1862 Added test.