Test creating a repository