Adds test suite for UF

refactor UF initialization in GlobalIndexes