run_test prototype