Add unit test for getting last ingestion document