test stdin, stdout and stderr simultaneously