CLOUDIFY-2211 Added unitest.