output test run and result to console in node

tests result is used to define success/exit return code for process in toConsole