refactoring tests to use platform specific pipe commands for linux, darwin and windows
extended the inputs_test for ProcessInput for debugging
added CR to the last token Pipe test for Windows