Some packages have their tests installed at ./test, not just ./tests. This covers that use case by removing both.
This will automatically remove a top-level "tests" directory from being installed.