Write tests for class CategoryForm

Create class CategoryFormTestCase. Create several supporting functions in
`factories.py`.