CodeRepositoryExtensionTest modified to handle $remotes configuration properly.