Factor out duplicated code in remote_tests
Create a test suite for common provider tests