basho/yokozuna — pull request #267 by rzezeski (2013-12-30 00:22:22+00:00)
Title: Reestablish check to remove indexes for non-owned data

At some point this check was lost. There were no test failures
because all queries have node filtering which prevent these orphaned
indexes from being detected.

This patch reestablishes the check and adds a test to prevent future
regressions.

I also slightly refactored the essential test.