test: do not hit real registry

Let the test use the npm-registry-mock.

For this test this reduces the time to the assertion to 0.276s
without SSD) from 2.548s (with empty cache)