Unit test for new /:package/latest.  There is no way to directly ask npm to get the latest.  However we originally ran into the problem when running an “npm update” so we test the functionality that way.
I had to update to a newer version of npm in package.json to work around an npm bug.