tests for categories controller