Refactored some tests and added XML declaration tests
Merge pull request #18 from goetas/test-refactor

Refactored some tests and added XML declaration tests