Add new tests and fix #1383.
Merge branch 'dev' of https://github.com/NuGet/NuGetGallery into dev