fixed local test script