Simplify shell command
Add test to check auto pipe connection
Add test and fix to spawn_tee