towards a contained test suite with no system state side effects

Here is a quick snapshot of my current work.
This *has* the ifError call, but needs `t.ok(code, <message>)`.