add test_compile_run method