Fix Constant Folding Bugs & Add More Unittests
Update the UnitTest for aggregation constant folding