Add test for input from pipe