added optional DEPLOY_RUNTIME and TARGET variables. added logic to run tests
added optional DEPLOY_RUNTIME and TARGET variables.
added logic to run tests

kbase/kbapi_common,kbase/kbapi_common,kbase/kbapi_common,kbase/kbapi_common,kbase/kbapi_common