Test event registering
Test event registering
fix e2e tests