wrote passing tests for the category model