Testing the index existence