Complete test coverage for files
Fix name
Add tests for tree scanner