DocumentRepository resttemplate tests