Added tests for AGGREGATE command