Extract run_tests.sh script