Wrapping OSX specific unit tests in a check, so they are only run on OSX.