Add test for prune refs