Modifies EventSourceImpl for anonymous construction, adds unit test