Test the category model and associations