Can we not shadow the variable here? Maybe have `test_response = as_test_response(response)`.