added CappedStorage class and tests, fixed DisplayFactoryTests