Fix pull from cache

1) add fix for calculation of postDependentAggs 
2) More tests