Add test for when input.read() returns a non-string