Fix for unit test on Mac