Add an idempotence test for pruning.