add tests for categories