fix: properly start and stop bosh server

This fixes the tests in `node-xmpp` node-xmpp/node-xmpp#208