Added test for stdin error