Add tests for events