Fixed instantiation of repo class in the repo unit tests