Fix skipping in stream inputs.

The existing test was piping input from a file, not an IPC pipe,
so wasn't a proper test. Fix the test and make skipping in pipes
work.