Update all middlewares and tests to use EventBus