Fix tests to fallback to remote repo when local not available.