Wrote test for eventSources