Fix tests on linux