[EventDispatcher] Add missing tests
[Dependency] Fix Container.leaveScope()