[NuGet] Fix unit tests failing on Mac.