Test aggregate behavior with many-to-many