This ensures that if multiple events are published, we wait until the event with the expected session id is fired. Fixes gh-382
This ensures that if multiple events are published, we wait until the event with the expected session id is fired. Fixes gh-382