setup and test script