tests for eventsource