Adding: tests for console and pipe