Fixup tests for repository_factor with a callback