fixes for test script