Make tests compatible with phpunit 4.3

This PR replaces the `assertTag()` calls used for the XML response formatter with XPath queries, making it compatible with phpunit 4.3 (where `assertTag()` is deprecated).

Also upgraded some outdated dependencies.