Refactor test scaffold and tests

In a moment of angst, wrote a test scaffold so I can tell what's
breaking. So, this wheel is round.

Fixed a problem with the domain tests that prevented subsequent tests
from running. Need to exit in addition to destroy.

Also switched to Istanbul for coverage checking.