TestCaseDatabase::saveFactoryState

Saves the Factory pointers