Add a Need API test helper for paginated results

This allows tests to stub a request for paginated results with a raw (json) response, which can contain the pagination details and links to next and previous pages.