add a unittest for itemcontroller, fix #92