added a test for the categories controller