factored out into its own class
test for aggregates