Use better mock stdin for CLI target tests to simulate interactive session.

[Finishes #84254760]

Signed-off-by: Chelsea Troy <ctroy@pivotal.io>