unittest: install rpms after repos are added

Change-Id: Ib38c91dea3bf5c4bde3bc8826cacceef33db4941