Add AutoPurge with test