Support for classes that implement in-memory factories for testing.