fixed failing test_cache