small test script fixes