Add a bit of end-to-end testing

This is faster than starting the xmpp bot to check if the output is
correct.