fixed test script.