fix unit tests with item insertion.