migrating cache unittests from old code