add some more unit tests for Categories.