Move all the default implementations now used only for tests into the
tests package.