add indexer and delegate tests