set up a factory for categories and added an association test