[tests] Fix OSM unit test on Mac