CLOUDIFY-2073 simplify json for test
CLOUDIFY-2073 add main task loop