added routes and tests for events