updated system, added testing framework for XMPP stanzas