Fix unit test for Linux