Fix unittests on Unix