Solving test script problems