Test now reads from stdin, also close stdin