agent: Fixing tests
agent: Fixing multiple headers for /v1/event/list endpoint. Fixes #361