fix test script error