xmpp-test code