Set the repository in the state needed by the tests