Add test for search index deletion