tests correctly send output to remote shell