added a test for aggregate without groupBy