Removes TestFactory

...because it was running tests in parallel, and
db state is required for these tests.