use npm-registry-mock, fixes #3633

This adds the new `npm-registry-mock` for testing. It's far away from complete, but it's easy to add new functionality whenever one needs a test.

See also #3633