Generic test script