Add unit test for getting last ingestion document
Merge branch 'release-v6.1.1'