There are already tests for npm server in `test/npm-protocol.js`.

I believe that integration tests are better for testing implementation of npm protocol, because we want to ensure reggie fulfils whatever npm client expects from the server.

Have you considered that? What are your arguments for going with unit-tests & mocking instead? Let's discuss this first.