slight modification of run test script