CLOUDIFY-1944 add test for host extraction logic