exists tests for index and mapping