begin refactoring for multiple endpoint request/response tests.