Repaired test script