Improved test for insert.