test script fix errors