Move test stubs to testrunner

This moves the testbed stuff out of the datastore connector, and into a custom test runner.  Also fixes a handful of related issues that were exposed the moment I did that!