fix test script for posix