fix test for darwin