Fixes in the tests about the new cache method