EUnit test for file pruning