patch for run_test.js