Add failing regression test for npm ls --depth=0

This test should turn green if read-installed is fixed and should
avoid regressions in the future.

This tests the cli, as it turned out that the programatical version
of npm has a bug where depth=0 is not working
Factor test-helper out of tests

Bonus:
  - Fix test in `startstop.js`