XD-1462: Test aggregate counter behavior

Compile warning is on me