Finally fixed enumerate unit test failing on BSD.