Add tests for ci service and event service