Make it possible to pass the objectstore to the inmemorydocumentdb so that I can create sane wiring for tests for referencedatamanagement.