CLOUDIFY-1908 extend base TestConfig
CLOUDIFY-1908 use nesting when defining function. makes code more readable