insert reflow hacks in test/insert.js