added test for categories