auto-test script