Add tests for categories.