Fix bug in test_script.sh