towards a contained test suite with no system state side effects

Here is a quick snapshot of my current work.
This is backwards – `code === 0` is the required condition here, which `t.notOk(code)` was verifying.