scheduler: agent_test: eventsource.Encode already Flushes
scheduler: use eventsource.Handler in mockAgent
scheduler: remoteAgent *must* send events to listener