File upload feature in XSD validation

- file upload concern fixes
- tests for new functionality
- refactoring of tests