Add tests for ObjectCache