Add a regression test case for \d on an index.

Previous commit shows the need for this.  The coverage isn't really
thorough, but it's better than nothing.