Fixed bugs when running test_script.py. All works well, but still needs to test getslow