Prune test for old hooks