REPL tests based on direct interaction with input and output stream. Includes multiline tests.