Tests for 'class_count' aggregation mode