Add test for re-indexing objects with attributes removed.