Fixed the tests failing on OS X