Fix tests for Mac