refactor(test.py): create run_test function for all environments
refactor(test.py): create run_test function for all environments

bbender/spark-js-sdk,bbender/spark-js-sdk,ciscospark/spark-js-sdk,mwegman/spark-js-sdk,aimeex3/spark-js-sdk,ciscospark/spark-js-sdk,mwegman/spark-js-sdk,aimeex3/spark-js-sdk,bbender/spark-js-sdk,adamweeks/spark-js-sdk,adamweeks/spark-js-sdk,adamweeks/spark-js-sdk,aimeex3/spark-js-sdk,mwegman/spark-js-sdk