Fix test failure introduced by console.log