TST: test that the .copy method on indexes copy the cache
In #32883 I made a PR to fix an issue that ``MultiIndex.copy`` didn't copy the ``_cache``.

This adds a test for this for all index types (there's no futher issue, but it should still be tested for).