refining test script