test: move run_test to emulator