CLN: use invalid_comparison for incorrect case in Index comparison
Only one test reaches this point, and we aren't currently checking for the output, just that a warning is emitted.  This fixes the currently-incorrect output and updates the test to check for it.