Regression tests for the new indexes-repacking features.

Patch from Beena Emerson.