Add test for exec tty stdin close

Signed-off-by: Brian Goff <cpuguy83@gmail.com>