Basic functionality and tests for the category service.