Fixed invocation to + test with real markup

* Use current instance instead of classes
* Add a proper XML file for testing
* Clarify variable names
* Extract invocation into single class