added runTest function to support performance tests