towards a contained test suite with no system state side effects

Here is a quick snapshot of my current work.
same as above, only `t.notOk(code, "npm dedupe exited with code 0")`