Events tests with mocking