Test building a document repository