[test] test case for console.log

for issue #643