XD-1462: Tests for AggregateCounter

Fix warning