Fix unit test that fails on some computers.