retrieve all docs, test case