Add test for repository id uniqueness errors