Porting unit tests for indexing layer

check talloc_named retval