tests: Add testcase for read by length past EOF.

Currently broken for unicode input streams.