[test] automatic test case for console.log

for issue #643