Fixed stackoverflow problem in DocumentService integration test