add test for categories controller before writing controller