Corrected test script