unit testing item sets controller, fixed some bugs along the way