Add test code for the caclulating the number of items in a Category