Fix upstream test - creation of repos

It's not clear to me how this ever worked!