Responses become structs and added unit tests