testing output capture of run_shell