Tests for CategoriesController