Add test for log aggregation

@alexispeter please review