removed an unnecessary query.
unit tests added for categorized items.