Added test for categorizedocument.