fixed tests on map to work also in windows

Same than #874 but for master