added tests for stdin related stuff