Write tests for CategoryService.