use `tm.assert_isinstance(idx, MultiIndex)` here