Adds functional tests for indices.exists().