tests for CategoryController