Added unit tests for config and events.