added test for deploy with config
runOnLoop->runOnContext + expose current context