Improvement to Consumes Deserialization

Related: #713 and #657
this line is repeated on all tests.
move it to setup