Added tests for events emission