Fix bug in bgp_xmpp_basic_test

Change-Id: Ie2e2d81ee575bf825a4ee1f606094c764c1c8e6b