Fix unit test when run on Unix