Fix aggregate logic test.