Added testRemoveCachedObjectsWhenRemovedFactory()