altered run-test and run_mean