DRY up category_creation.
DRY up item categorization tests. Fix a small bug found by tests w/ bad strings coming into the API.