Improved UNIX test script