Tests and patches

- Add some basic feature tests
- Patch XML Parsing vulnerability