Fix for unit test on Mac

My very first pull request!