Test for creating a repository