I'm not sure it's worth it trying all possible input character as: - ASCII characters (20-7F) bring nothing - it could have some unwanted side effects depending on input locale for upper half of the values - tests should be tests, not tools to list all possible values (it also consumes test time)
so I'd suggest that the second test duplicates the first one, but replacing ctrl-z by EOF=0 (so that we test unitary the behavior of the control characters that should end a file in text mode)