CrushWrapper::insert_item unittest and minor fixes

* Add unit tests for insert_item and a few other trivial functions
* Remove dead code in insert_item
* Add missing insert_item error handling