Add indexer and tests for IConfiguration