CLOUDIFY-1888 improve test assertion