More tests for aggregate -> pass
implement and test sorting