tests for index existence