fix @test_throws deprecation warnings for remote
fix @test_throws deprecations for repository tests, clone tests are still turned off for now