get the correct content length in bytes from the BufferedBody for test responses
move from unit tests