adding test for CategoriesController