bug fix in cache test script