Add test code for initializing category object with a list of items