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>)`