CLOUDIFY-2405 add test and fix small typo bug