Test the category controller for some error cases
Use counter_cache to keep track of the number of entries an item has