refactor for sys cats
added test for sys categories
refactoring