Added tests for /events/ api.