[TEST] Fixes test failures in aggregation configuration. Adds SQL w/ agg...

... tables.