core: support for this.files

- fixed issue with task scope not being respected
- added this.files support
- refactored tests

Impact: medium ( closes #1 )