Add test for log aggregation