- added tests for event dispatcher
- refactored a bit introduced event factory