Actually use STDIN, adjust test script exit status