cache weigher and cache max size tests