File pruning tests