Allow the underlying http adapter to be specified for tests