migrate tests to npm-registry-mock