change console.debug lines for tests in node