Added unit tests for aggregated events