fix events_test