Add tests for eventsource readyState