towards a contained test suite with no system state side effects

Here is a quick snapshot of my current work.
See above for remarks on `t.ifError` and `t.notOk(code, <message>)`