[2.0.0] added test for aggregating functions' cache