- Added public flag test for document retrieval.