test the method to create a repository