add test to check that returning a Response directly from the endpoint does not call render middleware.
add another check for render path