bug fix in auto update test script