Fix tests for osx