Split the test-runner out into a more defined lib.