Make AggregateCacheBehavior work with 2.4.2

also added unit tests