Wire new index switching into an integration test.
Tests for new index-switching functionality.
Add tests for cleaning up old indices.