Test basic conditional aggregate implementation