test for ingest and purge