unit tests added for CategoriesController