fixed ingestion test code