Create an abstract class for REST client tests

This is needed for the hybrid tests which reuse the tests, but in a bit different way.