insert console hacks in test/insert.js