Added ability to run custom code from test harness