Use events for testing