adding test program with piping