Enable getting data from metadatarepository

Modify unit tests

Change-Id: I75a71b48475b75ca6603756c33fad3742fea2900