Fix broken tests for local dimension caching.