Improved handling of cache backend tests.