TestCase::restoreFactoryState

Sets the Factory pointers