added test for EventSource