fixed CategoryService methods to pass tests