Added tests for events management