Test EventSource constructor