Don't install global tests package
Fix tree setup when URL is given
Remove unused imports
Don't use mutable objects in function defaults
Remove unused total_added_after variable
Hyoer-trivial typo fix