Add test for constrainedIndexing
Add test for invertIndex