fixes to test script