Replace usage of MockResponse with httptest.ResponseRecorder