Tests for EventWaitingGateway