fix test_response for nested endpoints