Tests robustness fix. Compare initial size of the cache with the final
instead of checking whether it's completely empty to account for tests
that may leave the cache not empty