test script for piping and io redirection