Remove debug output from test code.
Fail instead of doing the wrong thing on large inputs.

Silently ignoring the last N*65536 bytes of the input is not a good idea...