new test version of getRepository