update test, add debug instead console.log