Test creating repository