small fixes to test script