added test and implementation of method getItemsFromCategory