added a test to check proper passing of perl args
add protection against SIGPIPE terminating the host perl