Revert changes to terms tests
Make error_to_response and as_error() non-lossy