[test] Only console.error will show up in travis tests.