modified the test script