tests-posix.lua: fix pipeline test

Should call pipeline_slurp, not pipeline_iterator to get whole output
in one go. This has the nice side-effect of testing both
pipeline_iterator and pipeline as well, as pipeline_slurp calls
pipeline_iterator, which calls pipeline.