simplified the test script