ALLJOYN-1596: Tweak test to ensure proper sequence of events.

Change-Id: I768e2d2c5a068aca3d79e725633e6ed2d4eadde5