fix events in test