Replace duplicated `category` feature with `categories`
Add missed tests for categories
Add tests for duplicated categories
Merge pull request #2584 from yous/patch-categories-feature