Test creation of repository