add run_test function to util