add test cases to use StdOut and StdIn