CLOUDIFY-2077 Added test.