test and better support different content-types in request