- Move all classFromUri()- related tests to dedicated class
- Refactor: define() -> newType()
- Check for non-existant files efficiently