[test] fix test case for console.log