Add first tests

- Added some tests for events.
- Update devDependencies.