tests system2 function output stdout via parent