Fix lifecycle test

The test in 8b5e7b6a fails as it depends on a unconfigured npm
which uses exact the same values as a vanilla npmconf instance.

This fix also does not depends on the external dependency npmconf.
Fix ls-depth-cli test

Some environments have a configured depth=x - if that depth is 0,
like on travis or any other possible machine, the test failed.

This passes Infinity, which is the current default in npmconf