Add tests for XmppServer shutdown

Change-Id: I48c609d7783d6a0164abe1f2407e9db4f7894eef