NuGet test case and fixes.